diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2023-02-14 17:52:12 +1100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-02-15 22:25:01 -0500 |
commit | f989fa298c0f57070dca9816439aa2e72f1bec8d (patch) | |
tree | e26c1978123211b83c9fb2b4eacee42e1a03150a /lib/mpi/mpicoder.c | |
parent | 6e60cba666831e148d24b0aed783e1eb5bf99ff4 (diff) |
drm/amd/pm: avoid unaligned access warnings
When building on OpenBSD/arm64 with clang 15, unaligned access
warnings are seen when a union is embedded inside a packed struct.
drm/amd/pm/powerplay/hwmgr/vega20_pptable.h:136:17: error: field
smcPPTable within 'struct _ATOM_VEGA20_POWERPLAYTABLE' is less aligned
than 'PPTable_t' and is usually due to
'struct _ATOM_VEGA20_POWERPLAYTABLE' being packed, which can lead to
unaligned accesses [-Werror,-Wunaligned-access]
PPTable_t smcPPTable;
^
Make PPTable_t packed to avoid this.
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions