summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-12-15 17:32:44 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-12-15 17:32:44 +0300
commit7c6e850009a63baf51ef27e9bee3dff6b6b54c56 (patch)
tree7adc89d81158be32c52ccca2baef95872a70fd00 /drivers
parentefd1a045ded13cc50e20f0125118139a36df6ff2 (diff)
downloadaccel-ppp-7c6e850009a63baf51ef27e9bee3dff6b6b54c56.tar.gz
accel-ppp-7c6e850009a63baf51ef27e9bee3dff6b6b54c56.zip
ipoe,vlan_mon: define RHEL_MAJOR=0 if not set
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ipoe/ipoe.c4
-rw-r--r--drivers/vlan_mon/vlan_mon.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index b0cd0d67..d41cd4ff 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -52,6 +52,10 @@
#define DEFINE_SEMAPHORE(name) struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)
#endif
+#ifndef RHEL_MAJOR
+#define RHEL_MAJOR 0
+#endif
+
struct ipoe_stats {
struct u64_stats_sync sync;
u64 packets;
diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c
index f4a99228..db6d022f 100644
--- a/drivers/vlan_mon/vlan_mon.c
+++ b/drivers/vlan_mon/vlan_mon.c
@@ -35,6 +35,10 @@
#define NETIF_F_HW_VLAN_FILTER NETIF_F_HW_VLAN_CTAG_FILTER
#endif
+#ifndef RHEL_MAJOR
+#define RHEL_MAJOR 0
+#endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0) || RHEL_MAJOR == 7
#define vlan_tx_tag_present(skb) skb_vlan_tag_present(skb)
#endif