mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm/swsmu
Evan Quan 4513edf74c drm/amd/pm: suppress compile warnings about possible unaligned accesses
Suppress the following compile warnings:
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v11_0_pptable.h:163:17:
warning: field smc_pptable within 'struct smu_11_0_powerplay_table' is
less aligned than 'PPTable_t' and is usually due to 'struct smu_11_0_powerplay_table'
being packed, which can lead to unaligned accesses [-Wunaligned-access]
         PPTable_t smc_pptable;                        //PPTable_t in smu11_driver_if.h
                   ^
   1 warning generated.
--
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v11_0_7_pptable.h:193:17:
warning: field smc_pptable within 'struct smu_11_0_7_powerplay_table' is
less aligned than 'PPTable_t' and is usually due to 'struct smu_11_0_7_powerplay_table'
being packed, which can lead to unaligned accesses [-Wunaligned-access]
         PPTable_t smc_pptable;                        //PPTable_t in smu11_driver_if.h
                   ^
   1 warning generated.
--
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v13_0_pptable.h:161:12:
warning: field smc_pptable within 'struct smu_13_0_powerplay_table' is less aligned than
'PPTable_t' and is usually due to 'struct smu_13_0_powerplay_table' being packed, which
can lead to unaligned accesses [-Wunaligned-access]

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-06-03 16:43:36 -04:00
..
inc drm/amd/pm: suppress compile warnings about possible unaligned accesses 2022-06-03 16:43:36 -04:00
smu11 drm/amd/pm: correct the metrics version for SMU 11.0.11/12/13 2022-05-26 14:56:33 -04:00
smu12 drm/amd/pm: update smartshift powerboost calc for smu12 2022-05-16 10:02:57 -04:00
smu13 drm/amd/pm: Fix missing thermal throttler status 2022-05-26 14:56:32 -04:00
amdgpu_smu.c drm/amd/pm: skip dpm disablement on suspend for SMU 13.0.0 2022-05-26 14:56:31 -04:00
Makefile drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00
smu_cmn.c drm/amd/pm: enable workload type change on smu_v13_0_7 2022-05-06 10:36:12 -04:00
smu_cmn.h drm/amd/pm: enable the support for retrieving combo pptable 2022-05-04 09:58:33 -04:00
smu_internal.h drm/amdgpu: enable pptable ucode loading 2022-05-04 09:58:00 -04:00