[PATCH 0/2] drm/amdgpu: Fix instances of -Wunused-const-variable with CONFIG_DEBUG_FS=n
Nathan Chancellor
nathan at kernel.org
Thu Jun 15 17:06:07 UTC 2023
Hi all,
After commit a25a9dae2067 ("drm/amd/amdgpu: enable W=1 for amdgpu"),
I see a few instances of -Wunused-const-variable with configurations
that do not enable CONFIG_DEBUG_FS, such as Alpine Linux's. This series
includes two patches to resolve each warning I see.
---
Nathan Chancellor (2):
drm/amdgpu: Remove CONFIG_DEBUG_FS guard around body of amdgpu_rap_debugfs_init()
drm/amdgpu: Move clocks closer to its only usage in amdgpu_parse_cg_state()
drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c | 2 -
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 76 ++++++++++++++++-----------------
2 files changed, 38 insertions(+), 40 deletions(-)
---
base-commit: d297eedf83f5af96751c0da1e4355c19244a55a2
change-id: 20230615-amdgpu-wunused-const-variable-wo-debugfs-308ce8e17329
Best regards,
--
Nathan Chancellor <nathan at kernel.org>
More information about the amd-gfx
mailing list