1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm/swsmu/inc
Tom Rix 8d9cdb4674 drm/amd/pm: change pmfw_decoded_link_width, speed variables to globals
gcc with W=1 reports
In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0.c:36:
./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v13_0.h:66:18: error:
  ‘pmfw_decoded_link_width’ defined but not used [-Werror=unused-const-variable=]
   66 | static const int pmfw_decoded_link_width[7] = {0, 1, 2, 4, 8, 12, 16};
      |                  ^~~~~~~~~~~~~~~~~~~~~~~
./drivers/gpu/drm/amd/amdgpu/../pm/swsmu/inc/smu_v13_0.h:65:18: error:
  ‘pmfw_decoded_link_speed’ defined but not used [-Werror=unused-const-variable=]
   65 | static const int pmfw_decoded_link_speed[5] = {1, 2, 3, 4, 5};
      |                  ^~~~~~~~~~~~~~~~~~~~~~~

These variables are defined and used in smu_v13_0_7_ppt.c and smu_v13_0_0_ppt.c.
There should be only one definition.  So define the variables as globals
in smu_v13_0.c

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-04-18 16:28:50 -04:00
..
pmfw_if drm/amd/pm: bump SMU 13.0.4 driver_if header version 2023-03-13 17:14:48 -04:00
amdgpu_smu.h drm/amdgpu: added a sysfs interface for thermal throttling 2023-02-23 17:36:00 -05:00
smu_11_0_cdr_table.h drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00
smu_types.h drm/amd/pm: Add SMU 13.0.6 support 2023-03-07 14:22:41 -05:00
smu_v11_0.h drm/amd/pm: enable runpm support over BACO for SMU13.0.0 2022-11-15 13:35:16 -05:00
smu_v11_0_7_pptable.h drm/amd/pm: suppress compile warnings about possible unaligned accesses 2022-06-03 16:43:36 -04:00
smu_v11_0_pptable.h drm/amd/pm: suppress compile warnings about possible unaligned accesses 2022-06-03 16:43:36 -04:00
smu_v12_0.h drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00
smu_v13_0.h drm/amd/pm: change pmfw_decoded_link_width, speed variables to globals 2023-04-18 16:28:50 -04:00
smu_v13_0_7_pptable.h drm/amd/pm: suppress compile warnings about possible unaligned accesses 2022-06-03 16:43:36 -04:00
smu_v13_0_pptable.h drm/amd/pm: suppress compile warnings about possible unaligned accesses 2022-06-03 16:43:36 -04:00