소스 검색

drivers: mcb: Fix build error discovered by 0-day bot

Make mcb depend on HAS_IOMEM and mcb-pci depend on PCI. This fixes build errors
discovered by the 0-day kernel build testing system.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@men.de>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Johannes Thumshirn 11 년 전
부모
커밋
07792c7e10
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      drivers/mcb/Kconfig

+ 4 - 1
drivers/mcb/Kconfig

@@ -4,6 +4,8 @@
 
 
 menuconfig MCB
 menuconfig MCB
 	   tristate "MCB support"
 	   tristate "MCB support"
+	   default n
+	   depends on HAS_IOMEM
 	   help
 	   help
 
 
 	   The MCB (MEN Chameleon Bus) is a Bus specific to MEN Mikroelektronik
 	   The MCB (MEN Chameleon Bus) is a Bus specific to MEN Mikroelektronik
@@ -16,7 +18,8 @@ menuconfig MCB
 if MCB
 if MCB
 config MCB_PCI
 config MCB_PCI
 	   tristate "PCI based MCB carrier"
 	   tristate "PCI based MCB carrier"
-	   default m
+	   default n
+	   depends on PCI
 	   help
 	   help
 
 
 	   This is a MCB carrier on a PCI device. Both PCI attached on-board
 	   This is a MCB carrier on a PCI device. Both PCI attached on-board