ar71xx: add missing include for checking kernel version
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 22 Aug 2018 11:00:21 +0000 (13:00 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 22 Aug 2018 11:11:52 +0000 (13:11 +0200)
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>
target/linux/ar71xx/files/arch/mips/ath79/mach-c60.c
target/linux/ar71xx/files/arch/mips/ath79/mach-domywifi-dw33d.c
target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb922.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c

index f5b8d3065f64e90a7861062ada908b45159de40a..bccf2e5873f87594e21d2b32bac7953c7b453400 100644 (file)
@@ -12,6 +12,7 @@
  *  by the Free Software Foundation.
  */
 
+#include <linux/version.h>
 #include <linux/pci.h>
 #include <linux/phy.h>
 #include <linux/mtd/mtd.h>
index 4210646e24176f20381f68a47dea3031a6fbaaea..ac4aa8eadf04916b1d25ce33d3b624e41516ba86 100644 (file)
@@ -18,6 +18,7 @@
  *
  */
 
+#include <linux/version.h>
 #include <linux/platform_device.h>
 #include <linux/ar8216_platform.h>
 #include <linux/mtd/mtd.h>
index 3f5a404e6fa868b2d433e476f808712d26aac466..1c08e53f15529c689adae00fed5544c40157ed07 100644 (file)
@@ -20,6 +20,7 @@
  *
  */
 
+#include <linux/version.h>
 #include <linux/platform_device.h>
 #include <linux/ar8216_platform.h>
 #include <linux/gpio.h>
index 60c505b6dc417ab1ab42cb89b15bcae08e73c48c..7bf64905c68d0d5b4405d12f2c918dc472528e12 100644 (file)
@@ -11,6 +11,7 @@
 
 #define pr_fmt(fmt) "rb2011: " fmt
 
+#include <linux/version.h>
 #include <linux/phy.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
index 985ef72d78c4810613958aa43f18b29bda3f2907..e240c3ad43cff9c411e42e9dde4e99105f35aa0a 100644 (file)
@@ -10,6 +10,7 @@
 
 #define pr_fmt(fmt) "rb91x: " fmt
 
+#include <linux/version.h>
 #include <linux/phy.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
index 10cbdd56b61a83f57c067d740778e2b59858203d..43bcc99fc7cd145c6941937a1bea33ba78f92992 100644 (file)
@@ -8,6 +8,7 @@
  *  by the Free Software Foundation.
  */
 
+#include <linux/version.h>
 #include <linux/phy.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
index adf23fa68bd4d9198304704e9bc10a524e177783..33c4f531330f0f718befc86868c646e2520d8bf3 100644 (file)
@@ -12,6 +12,7 @@
 
 #define pr_fmt(fmt) "rb95x: " fmt
 
+#include <linux/version.h>
 #include <linux/phy.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
index 9f3f8ecd47317c05a72b7c59b2a48e32e7604553..d0e6baea49e8b8f855442e1dc019a6e06b674ada 100644 (file)
@@ -12,6 +12,7 @@
 
 #define pr_fmt(fmt) "sxtlite: " fmt
 
+#include <linux/version.h>
 #include <linux/phy.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
index a50239da15cd960a7633259f341ae14ac62f7ab7..d129bb7854ad01a924775ec50755869005a8b929 100644 (file)
@@ -9,6 +9,7 @@
  *  by the Free Software Foundation.
  */
 
+#include <linux/version.h>
 #include <linux/pci.h>
 #include <linux/phy.h>
 #include <linux/gpio.h>
index a8fd5c7209fa0be5b3aa05c506689ac40424723e..a2eaba1a1e6808584fe2ba36aebc8ed473e9bee6 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "ag71xx.h"
+#include <linux/version.h>
 
 static int ag71xx_ethtool_get_settings(struct net_device *dev,
                                       struct ethtool_cmd *cmd)