]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/kunit: fix link failure with built-in xe
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Feb 2024 12:46:36 +0000 (13:46 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 4 Mar 2024 14:41:11 +0000 (08:41 -0600)
commitd1d95985ab66b6605286bc00d757054ce22f7d1d
tree6e41cc92c4e0c2fd845142181867644f6800341f
parentc6d6a82d8a9f8f9326b760accaa532b839b80140
drm/xe/kunit: fix link failure with built-in xe

When the driver is built-in but the tests are in loadable modules,
the helpers don't actually get put into the driver:

ERROR: modpost: "xe_kunit_helper_alloc_xe_device" [drivers/gpu/drm/xe/tests/xe_test.ko] undefined!

Change the Makefile to ensure they are always part of the driver
even when the rest of the kunit tests are in loadable modules.

Fixes: 5095d13d758b ("drm/xe/kunit: Define helper functions to allocate fake xe device")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240226124736.1272949-1-arnd@kernel.org
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
(cherry picked from commit 0e6fec6da25167a568fbaeb8401d8172069124ad)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/Kconfig
drivers/gpu/drm/xe/Kconfig.debug
drivers/gpu/drm/xe/Makefile