Skip to contentSkip to conversation

soc: mmp: guard include of asm/cputype.h with CONFIG_ARM{, 64}

PATCH New Olof Johansson 1 participant 1 message Oct 22, 2019 Mmp support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: mmp: guard include of asm/cputype.h with CONFIG_ARM{, 64}

Since this driver is enabled for COMPILE_TEST, it avoids build error on x86 allmodconfig:

In file included from /build/drivers/phy/marvell/phy-mmp3-usb.c:12:
/build/include/linux/soc/mmp/cputype.h:5:10: fatal error: asm/cputype.h: No such file or directory

---

Lubomir, I've applied this on top of your branches already. Posting for awareness.

 include/linux/soc/mmp/cputype.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/soc/mmp/cputype.h +2 -0
index c3ec88983e94..221790761e8e 100644
@@ -2,7 +2,9 @@
 #ifndef __ASM_MACH_CPUTYPE_H
 #define __ASM_MACH_CPUTYPE_H
 
+#if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
 #include <asm/cputype.h>
+#endif
 
 /*
  *  CPU   Stepping   CPU_ID      CHIP_ID
Signature · 7 lines
2.22.GIT


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel