use pragma pack around PPTable_t definitions
authorjsg <jsg@openbsd.org>
Tue, 14 Feb 2023 11:34:32 +0000 (11:34 +0000)
committerjsg <jsg@openbsd.org>
Tue, 14 Feb 2023 11:34:32 +0000 (11:34 +0000)
commit715494ad5ddd403f95178514b85cd1a5948d783c
tree33326a66cea861b1efaf31bdc5fa056ba7da932b
parent12139144481c3d519ea04a8a115f5b429e40a4f8
use pragma pack around PPTable_t definitions

Avoids warnings about alignment changing when embedded inside of a
packed struct (such as _ATOM_VEGA20_POWERPLAYTABLE) seen with clang 15
on arm64.

reported and compile tested by tb@
sent upstream to amd-gfx list
sys/dev/pci/drm/amd/pm/powerplay/inc/smu11_driver_if.h
sys/dev/pci/drm/amd/pm/powerplay/inc/smu9_driver_if.h
sys/dev/pci/drm/amd/pm/powerplay/inc/vega12/smu9_driver_if.h
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_arcturus.h
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_navi10.h
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_aldebaran.h
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h
sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h