Skip to content

Commit 142a0f8

Browse files
ogabbaygregkh
authored andcommitted
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. 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>
1 parent dbbe358 commit 142a0f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/misc/habanalabs/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
config HABANA_AI
66
tristate "HabanaAI accelerators (habanalabs)"
7-
depends on PCI
7+
depends on PCI && HAS_IOMEM
88
select FRAME_VECTOR
99
select DMA_SHARED_BUFFER
1010
select GENERIC_ALLOCATOR
11+
select HWMON
1112
help
1213
Enables PCIe card driver for Habana's AI Processors (AIP) that are
1314
designed to accelerate Deep Learning inference and training workloads.

0 commit comments

Comments
 (0)