]> git.baikalelectronics.ru Git - kernel.git/commitdiff
platform/x86/intel/ifs: Add CPU_SUP_INTEL dependency
authorBorislav Petkov <bp@suse.de>
Thu, 19 May 2022 14:57:15 +0000 (16:57 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 19 May 2022 17:46:25 +0000 (19:46 +0200)
The driver is using functions from a compilation unit which is enabled
by CONFIG_CPU_SUP_INTEL. Add that dependency to Kconfig explicitly
otherwise:

  drivers/platform/x86/intel/ifs/load.o: in function `ifs_load_firmware':
  load.c:(.text+0x3b8): undefined reference to `intel_cpu_collect_info'

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/YoZay8YR0zRGyVu+@zn.tnic
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/ifs/Kconfig

index d84491cfb0db29fed95b733343c47a7e24f14f7e..7ce896434b8f8330793b9c8af80a518acb70376a 100644 (file)
@@ -1,6 +1,6 @@
 config INTEL_IFS
        tristate "Intel In Field Scan"
-       depends on X86 && 64BIT && SMP
+       depends on X86 && CPU_SUP_INTEL && 64BIT && SMP
        select INTEL_IFS_DEVICE
        help
          Enable support for the In Field Scan capability in select