Skip to content
Commit 0e6fec6d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Lucas De Marchi
Browse files

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: 5095d13d ("drm/xe/kunit: Define helper functions to allocate fake xe device")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240226124736.1272949-1-arnd@kernel.org


Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 158900ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment