]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: suppress compile warning about possible unaligned accesses
authorEvan Quan <evan.quan@amd.com>
Sat, 7 May 2022 06:54:44 +0000 (14:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:13 +0000 (17:53 -0400)
commita4e7af40405ad7f75a9ab4fe71f07dd0ef0e1e5c
treef0b55653ee97a55aa1354b62e2206e1510036d0e
parent32d6c0249596337182c5fb80e3237820ff513615
drm/amd/pm: suppress compile warning about possible unaligned accesses

Suppress the following compile warning:
   In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_0_ppt.c:39:
>> drivers/gpu/drm/amd/amdgpu/../pm/inc/smu_v13_0_0_pptable.h:194:39:
warning: field overdrive_table within 'struct smu_13_0_0_powerplay_table' is
less aligned than 'struct smu_13_0_0_overdrive_table' and is usually due to
'struct smu_13_0_0_powerplay_table' being packed,
which can lead to unaligned accesses [-Wunaligned-access]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/inc/smu_v13_0_0_pptable.h