Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Jani Nikula <jani.nikula@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/xe: don't build debugfs files when CONFIG_DEBUG_FS=n
Date: Wed, 24 Jan 2024 13:35:23 -0800	[thread overview]
Message-ID: <ee182014-8dc8-40dc-bbdb-bbd90c7783c3@infradead.org> (raw)
In-Reply-To: <20240124090515.3363901-1-jani.nikula@intel.com>



On 1/24/24 01:05, Jani Nikula wrote:
> If we unconditionally build the debugfs files, we'll get both the static
> inline stubs from the headers and the real functions for
> CONFIG_DEBUG_FS=n. Avoid building the debugfs files with that config.
> 
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Closes: https://lore.kernel.org/r/152521f9-119f-4c61-b467-3e91f4aecb1a@infradead.org
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> ---
>  drivers/gpu/drm/xe/Makefile | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> index fe8b266a9819..abb2be8268d0 100644
> --- a/drivers/gpu/drm/xe/Makefile
> +++ b/drivers/gpu/drm/xe/Makefile
> @@ -222,8 +222,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
>  	i915-display/intel_ddi.o \
>  	i915-display/intel_ddi_buf_trans.o \
>  	i915-display/intel_display.o \
> -	i915-display/intel_display_debugfs.o \
> -	i915-display/intel_display_debugfs_params.o \
>  	i915-display/intel_display_device.o \
>  	i915-display/intel_display_driver.o \
>  	i915-display/intel_display_irq.o \
> @@ -267,7 +265,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
>  	i915-display/intel_modeset_setup.o \
>  	i915-display/intel_modeset_verify.o \
>  	i915-display/intel_panel.o \
> -	i915-display/intel_pipe_crc.o \
>  	i915-display/intel_pmdemand.o \
>  	i915-display/intel_pps.o \
>  	i915-display/intel_psr.o \
> @@ -294,6 +291,13 @@ ifeq ($(CONFIG_DRM_FBDEV_EMULATION),y)
>  	xe-$(CONFIG_DRM_XE_DISPLAY) += i915-display/intel_fbdev.o
>  endif
>  
> +ifeq ($(CONFIG_DEBUG_FS),y)
> +	xe-$(CONFIG_DRM_XE_DISPLAY) += \
> +		i915-display/intel_display_debugfs.o \
> +		i915-display/intel_display_debugfs_params.o \
> +		i915-display/intel_pipe_crc.o
> +endif
> +
>  obj-$(CONFIG_DRM_XE) += xe.o
>  obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/
>  

-- 
#Randy

  parent reply	other threads:[~2024-01-24 21:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24  9:05 [PATCH] drm/xe: don't build debugfs files when CONFIG_DEBUG_FS=n Jani Nikula
2024-01-24  9:09 ` ✓ CI.Patch_applied: success for " Patchwork
2024-01-24  9:09 ` ✓ CI.checkpatch: " Patchwork
2024-01-24  9:10 ` ✓ CI.KUnit: " Patchwork
2024-01-24  9:17 ` ✓ CI.Build: " Patchwork
2024-01-24  9:18 ` ✓ CI.Hooks: " Patchwork
2024-01-24  9:19 ` ✓ CI.checksparse: " Patchwork
2024-01-24  9:40 ` ✓ CI.BAT: " Patchwork
2024-01-24 21:35 ` Randy Dunlap [this message]
2024-01-24 22:38   ` Re: [PATCH] " Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee182014-8dc8-40dc-bbdb-bbd90c7783c3@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox