drm/xe: don't build debugfs files when CONFIG_DEBUG_FS=n
authorJani Nikula <jani.nikula@intel.com>
Wed, 24 Jan 2024 09:05:15 +0000 (11:05 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 24 Jan 2024 22:34:07 +0000 (14:34 -0800)
commit439987f6f471c2d8c99e77d3aa75cda597796b9d
treed3122480dae6ef1690275a27bd3e671112e9ee5e
parent28a98c39fa9b917cea04cb429eb1744e161c82f0
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 <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>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240124090515.3363901-1-jani.nikula@intel.com
drivers/gpu/drm/xe/Makefile