All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Fix build warning for TA debugfs interface
@ 2022-04-27 10:16 Candice Li
  0 siblings, 0 replies; only message in thread
From: Candice Li @ 2022-04-27 10:16 UTC (permalink / raw)
  To: amd-gfx; +Cc: Candice Li

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

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Candice Li <candice.li@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-27 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 10:16 [PATCH] drm/amdgpu: Fix build warning for TA debugfs interface Candice Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.