mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
drm/xe: don't build debugfs files when CONFIG_DEBUG_FS=n
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 <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Signed-off-by: Jani Nikula <[email protected]> Tested-by: Randy Dunlap <[email protected]> # build-tested Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
committed by
Lucas De Marchi
parent
28a98c39fa
commit
439987f6f4
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user