aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-08-22 13:00:21 +0200
committerJohn Crispin <john@phrozen.org>2018-08-22 13:11:52 +0200
commit743654f30dde7659d11280e9cd34da2f1ddad0bc (patch)
treea6be92617a4c4acb5de4afd1e801813165b52bd4 /target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
parent499773f8efe3357a2076c75c503ebcb42e41dbe6 (diff)
downloadupstream-743654f30dde7659d11280e9cd34da2f1ddad0bc.tar.gz
upstream-743654f30dde7659d11280e9cd34da2f1ddad0bc.tar.bz2
upstream-743654f30dde7659d11280e9cd34da2f1ddad0bc.zip
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 <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
index 3f5a404e6f..1c08e53f15 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
@@ -20,6 +20,7 @@
*
*/
+#include <linux/version.h>
#include <linux/platform_device.h>
#include <linux/ar8216_platform.h>
#include <linux/gpio.h>