]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
habanalabs: adjust Kconfig to fix build errors
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 2 Mar 2019 09:32:12 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Mar 2019 11:03:56 +0000 (12:03 +0100)
The driver use the HWMON framework to display various sensors information.
Therefore, CONFIG_HWMON must be included to prevent build errors.

This patch adds "select HWMON" to the driver's Kconfig file to make sure
HWMON is built. In addition, to avoid breaking dependencies, it adds
dependency on HAS_IOMEM because HWMON is dependent on HAS_IOMEM.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/Kconfig

index a7cbc1fb69576bcad3b48a01485ba4813d7f7495..99db2b82ada655cf7a1a4ab8355b0c8570c8d640 100644 (file)
@@ -4,10 +4,11 @@
 
 config HABANA_AI
        tristate "HabanaAI accelerators (habanalabs)"
-       depends on PCI
+       depends on PCI && HAS_IOMEM
        select FRAME_VECTOR
        select DMA_SHARED_BUFFER
        select GENERIC_ALLOCATOR
+       select HWMON
        help
          Enables PCIe card driver for Habana's AI Processors (AIP) that are
          designed to accelerate Deep Learning inference and training workloads.