Skip to contentSkip to conversation

drm/amdgpu: Fix build warning for TA debugfs interface

PATCH Superseded Candice Li 1 participant 1 message Apr 27, 2022

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Candice Li

author
#0 lore raw

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

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

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c +0 -2
index 6806deb098d3f7..ccda96c924dc99 100644
@@ -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)
Signature · 1 line
2.17.1