[PATCH] drm/amdgpu: Fix build warning for TA debugfs interface

Candice Li candice.li at amd.com
Wed Apr 27 10:16:17 UTC 2022


Remove the redundant conditional group to fix build warning
when CONFIG_DEBUG_FS is disabled.

Reported-by: Randy Dunlap <rdunlap at infradead.org>
Signed-off-by: Candice Li <candice.li at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c
index 6806deb098d3f7..ccda96c924dc99 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c
@@ -305,9 +305,7 @@ static struct dentry *amdgpu_ta_if_debugfs_create(struct amdgpu_device *adev)
 
 void amdgpu_ta_if_debugfs_init(struct amdgpu_device *adev)
 {
-#if defined(CONFIG_DEBUG_FS)
 	dir = amdgpu_ta_if_debugfs_create(adev);
-#endif
 }
 
 void amdgpu_ta_if_debugfs_remove(void)
-- 
2.17.1



More information about the amd-gfx mailing list