diff options
author | Nathan Chancellor <nathan@kernel.org> | 2023-06-15 10:06:08 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-23 15:33:09 -0400 |
commit | 4e3f85d1c071ed174aa5a7477d499d576412df3b (patch) | |
tree | 5b9726924146d7316695b7041a0aea7d1fd5f112 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
parent | 3ec61983aae0acbffbd5c22d83b2019f5c0eb516 (diff) |
drm/amdgpu: Remove CONFIG_DEBUG_FS guard around body of amdgpu_rap_debugfs_init()
After commit 8020f0f9316b ("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/amdgpu_rap.c:110:37: error: unused variable 'amdgpu_rap_debugfs_ops' [-Werror,-Wunused-const-variable]
110 | static const struct file_operations amdgpu_rap_debugfs_ops = {
| ^
1 error generated.
There is no reason for the body of this function to be guarded when
CONFIG_DEBUG_FS is disabled, as debugfs_create_file() is a stub that
just returns an error pointer in that situation. Remove the preprocessor
guards so that the variable never appears unused, while not changing
anything at run time.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions