mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Nathan Chancellor 44762718b3 drm/amdgpu: Move clocks closer to its only usage in amdgpu_parse_cg_state()
After commit 8020f0f931 ("drm/amd/amdgpu: enable W=1 for amdgpu"),
there is an instance of -Wunused-const-variable when CONFIG_DEBUG_FS is
disabled:

  drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:38:34: error: unused variable 'clocks' [-Werror,-Wunused-const-variable]
     38 | static const struct cg_flag_name clocks[] = {
        |                                  ^
  1 error generated.

clocks is only used when CONFIG_DEBUG_FS is set, so move the definition
into the CONFIG_DEBUG_FS block right above its only usage to clear up
the warning.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-06-23 15:36:12 -04:00
..
inc drm/amd/pm: update SMU13 header files for coming OD support 2023-06-09 12:36:14 -04:00
legacy-dpm drm/amd/pm: resolve reboot exception for si oland 2023-06-09 10:57:03 -04:00
powerplay drm/amdgpu: add xcc index argument to rlc safe_mode func (v4) 2023-04-18 16:28:55 -04:00
swsmu drm/amd/pm: remove unneeded variable 2023-06-23 15:33:05 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_pm.c drm/amdgpu: Move clocks closer to its only usage in amdgpu_parse_cg_state() 2023-06-23 15:36:12 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00