2023-12-06 15:02:20

by Dario Binacchi

[permalink] [raw]
Subject: [PATCH] drm/debugfs: drop unneeded DEBUG_FS guard

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

Signed-off-by: Dario Binacchi <[email protected]>
---

drivers/gpu/drm/drm_debugfs.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
index f291fb4b359f..f80d9cf3e71a 100644
--- a/drivers/gpu/drm/drm_debugfs.c
+++ b/drivers/gpu/drm/drm_debugfs.c
@@ -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 */
--
2.43.0


2023-12-07 10:09:57

by Jani Nikula

[permalink] [raw]
Subject: Re: [PATCH] drm/debugfs: drop unneeded DEBUG_FS guard

On Wed, 06 Dec 2023, Dario Binacchi <[email protected]> wrote:
> The Makefile enables/disables the file compilation depending on
> CONFIG_DEBUG_FS.
>
> Signed-off-by: Dario Binacchi <[email protected]>

Reviewed-by: Jani Nikula <[email protected]>

> ---
>
> drivers/gpu/drm/drm_debugfs.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
> index f291fb4b359f..f80d9cf3e71a 100644
> --- a/drivers/gpu/drm/drm_debugfs.c
> +++ b/drivers/gpu/drm/drm_debugfs.c
> @@ -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 */

--
Jani Nikula, Intel