summaryrefslogtreecommitdiff
path: root/drivers/vlan_mon
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2023-09-23 12:35:42 +0300
committerDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2023-09-23 12:35:42 +0300
commit30bde382bed321e6bc24ce8918c3693ee3c74943 (patch)
tree054fd53d7d591b783f132856920a1311c48771fa /drivers/vlan_mon
parenteafba38b3220d488ed86ebdbc1728f42238a4952 (diff)
downloadaccel-ppp-30bde382bed321e6bc24ce8918c3693ee3c74943.tar.gz
accel-ppp-30bde382bed321e6bc24ce8918c3693ee3c74943.zip
ipoe:vlan_mon: add support for kernels 6.4+
Diffstat (limited to 'drivers/vlan_mon')
-rw-r--r--drivers/vlan_mon/vlan_mon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c
index ce56dfe1..e37fd365 100644
--- a/drivers/vlan_mon/vlan_mon.c
+++ b/drivers/vlan_mon/vlan_mon.c
@@ -79,7 +79,11 @@ static struct genl_family vlan_mon_nl_family;
static struct genl_multicast_group vlan_mon_nl_mcg;
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
static DEFINE_SEMAPHORE(vlan_mon_lock);
+#else
+static DEFINE_SEMAPHORE(vlan_mon_lock,1);
+#endif
static inline int vlan_mon_proto(int proto)
{