Skip to content

drm/xe: Fix compilation when Xe driver is builtin

Mauro Carvalho Chehab requested to merge mchehab_kernel/kernel:xe into xe

Trying to build the driver as builtin with ACPI_WMI=m causes a Kconfig error:

WARNING: unmet direct dependencies detected for ACPI_VIDEO
  Depends on [m]: ACPI [=y] && BACKLIGHT_CLASS_DEVICE [=y] && INPUT [=y] && (ACPI_WMI [=m] || !X86 [=y])
  Selected by [y]:
  - DRM_XE [=y] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] && X86 [=y] && ACPI [=y]

As a workaround, let's also select ACPI_WMI. It should be noticed that the real solution would be to avoid doing so many selects, using a depends on instead, but that would require a major rework on Xe (and probably i915) Kconfig files.

Signed-off-by: Mauro Carvalho Chehab mchehab@kernel.org

Merge request reports

Loading