Skip to contentSkip to conversation

habanalabs: adjust Kconfig to fix build errors

PATCH New Oded Gabbay 1 participant 1 message Mar 2, 2019 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 habanalabs: adjust Kconfig to fix build errors

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.

---
 drivers/misc/habanalabs/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/misc/habanalabs/Kconfig +2 -1
index a7cbc1fb6957..99db2b82ada6 100644
@@ -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.
Signature · 1 line
2.18.0