Skip to contentSkip to conversation

drm/debugfs: drop unneeded DEBUG_FS guard

PATCH Superseded Dario Binacchi 2 participants 2 messages Dec 6, 2023 – Dec 7, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/debugfs: drop unneeded DEBUG_FS guard

The Makefile enables/disables the file compilation depending on CONFIG_DEBUG_FS.

---

 drivers/gpu/drm/drm_debugfs.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/drm_debugfs.c +0 -4
index f291fb4b359f..f80d9cf3e71a 100644
@@ -45,8 +45,6 @@
 #include "drm_crtc_internal.h"
 #include "drm_internal.h"
 
-#if defined(CONFIG_DEBUG_FS)
-
 /***************************************************
  * Initialization, etc.
  **************************************************/
@@ -588,5 +586,3 @@ void drm_debugfs_crtc_remove(struct drm_crtc *crtc)
 	debugfs_remove_recursive(crtc->debugfs_entry);
 	crtc->debugfs_entry = NULL;
 }
-
-#endif /* CONFIG_DEBUG_FS */
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Dario Binacchi

The Makefile enables/disables the file compilation depending on CONFIG_DEBUG_FS.

Quoted 24 lines

---

 drivers/gpu/drm/drm_debugfs.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/drm_debugfs.c +0 -4
index f291fb4b359f..f80d9cf3e71a 100644
@@ -45,8 +45,6 @@
 #include "drm_crtc_internal.h"
 #include "drm_internal.h"
 
-#if defined(CONFIG_DEBUG_FS)
-
 /***************************************************
  * Initialization, etc.
  **************************************************/
@@ -588,5 +586,3 @@ void drm_debugfs_crtc_remove(struct drm_crtc *crtc)
 	debugfs_remove_recursive(crtc->debugfs_entry);
 	crtc->debugfs_entry = NULL;
 }
-
-#endif /* CONFIG_DEBUG_FS */
Signature · 1 line
Jani Nikula, Intel