Skip to contentSkip to conversation

x86/Kconfig: compile 32bit drivers for COMPILE_TEST

PATCH In review Hannes Reinecke 2 participants 2 messages Aug 28, 2017 – Aug 29, 2017 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/Kconfig: compile 32bit drivers for COMPILE_TEST

When COMPILE_TEST is set we should be compiling 32-bit only drivers and features (like ISA support etc), too. After all, it's a compile test.

---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index 781521b7cf9e..df61bc37b1a2 100644
@@ -2548,7 +2548,7 @@ config ISA_DMA_API
 	  Enables ISA-style DMA support for devices requiring such controllers.
 	  If unsure, say Y.
 
-if X86_32
+if X86_32 || COMPILE_TEST
 
 config ISA
 	bool "ISA support"
Signature · 1 line
2.12.3
#1 lore raw
Quoted 14 lines · Hannes Reinecke

When COMPILE_TEST is set we should be compiling 32-bit only drivers and features (like ISA support etc), too. After all, it's a compile test.

---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +0 -0
index 781521b7cf9e..df61bc37b1a2 100644

arch/x86/Kconfig config ISA_DMA_API · line 2554

Quoted 8 lines
arch/x86/Kconfig +1 -1
@@ -2548,7 +2548,7 @@ config ISA_DMA_API
 	  Enables ISA-style DMA support for devices requiring such controllers.
 	  If unsure, say Y.
 
-if X86_32
+if X86_32 || COMPILE_TEST
 
 config ISA
 	bool "ISA support"

This is almost certainly a bad idea: if it's a compile test, why not compile test the 32-bit kernel, which will include these drivers?

These are drivers that have probably been ever been built in 64-bit mode, and now an allmodconfig/allyesconfig will turn them on...

Thanks,

Ingo