From: Olof Johansson Date: Tue, 22 Oct 2019 01:52:24 +0000 (-0700) Subject: soc: mmp: guard include of asm/cputype.h with CONFIG_ARM{,64} X-Git-Tag: v5.10.7~3704^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a362687404edc5d73a4fc281af3b2b1542ef194e;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20191022015658.14624-1-olof@lixom.net Signed-off-by: Olof Johansson --- diff --git a/include/linux/soc/mmp/cputype.h b/include/linux/soc/mmp/cputype.h index c3ec889..2217907 100644 --- a/include/linux/soc/mmp/cputype.h +++ b/include/linux/soc/mmp/cputype.h @@ -2,7 +2,9 @@ #ifndef __ASM_MACH_CPUTYPE_H #define __ASM_MACH_CPUTYPE_H +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) #include +#endif /* * CPU Stepping CPU_ID CHIP_ID