From 743654f30dde7659d11280e9cd34da2f1ddad0bc Mon Sep 17 00:00:00 2001 From: Koen Vandeputte Date: Wed, 22 Aug 2018 13:00:21 +0200 Subject: ar71xx: add missing include for checking kernel version Fixes these build errors: arch/mips/ath79/mach-rb2011.c:20:5: error: "LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Werror=undef] #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) ^~~~~~~~~~~~~~~~~~ arch/mips/ath79/mach-rb2011.c:20:26: error: "KERNEL_VERSION" is not defined, evaluates to 0 [-Werror=undef] #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) ^~~~~~~~~~~~~~ arch/mips/ath79/mach-rb2011.c:20:40: error: missing binary operator before token "(" #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) ^ Fixes: 318e19ba6755 ("ar71xx: add v4.14 support") Signed-off-by: Koen Vandeputte --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c') diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c index 10cbdd56b6..43bcc99fc7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c @@ -8,6 +8,7 @@ * by the Free Software Foundation. */ +#include #include #include #include -- cgit v1.2.3