Skip to content

Commit

Permalink
habanalabs: adjust Kconfig to fix build errors
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
ogabbay authored and gregkh committed Mar 2, 2019
1 parent dbbe358 commit 142a0f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/misc/habanalabs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 142a0f8

Please sign in to comment.