[PATCH v2 2/2] drm/xe: Allow dropping kunit dependency as built-in
Randy Dunlap
rdunlap at infradead.org
Sat Jun 28 02:56:16 UTC 2025
On 6/27/25 1:30 PM, Lucas De Marchi wrote:
> From: Harry Austen <hpausten at protonmail.com>
>
> Fix Kconfig symbol dependency on KUNIT, which isn't actually required
> for XE to be built-in. However, if KUNIT is enabled, it must be built-in
> too.
>
> Fixes: 08987a8b6820 ("drm/xe: Fix build with KUNIT=m")
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
> Cc: Jani Nikula <jani.nikula at linux.intel.com>
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Signed-off-by: Harry Austen <hpausten at protonmail.com>
> Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
Acked-by: Randy Dunlap <rdunlap at infradead.org>
Tested-by: Randy Dunlap <rdunlap at infradead.org>
Thanks.
> ---
> drivers/gpu/drm/xe/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
> index 553c29e1030b1..827bc75b8b48f 100644
> --- a/drivers/gpu/drm/xe/Kconfig
> +++ b/drivers/gpu/drm/xe/Kconfig
> @@ -1,7 +1,8 @@
> # SPDX-License-Identifier: GPL-2.0-only
> config DRM_XE
> tristate "Intel Xe2 Graphics"
> - depends on DRM && PCI && (m || (y && KUNIT=y))
> + depends on DRM && PCI
> + depends on KUNIT || !KUNIT
> depends on INTEL_VSEC || !INTEL_VSEC
> depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)
> select INTERVAL_TREE
>
--
~Randy
More information about the Intel-xe
mailing list