Skip to content
Snippets Groups Projects
Commit 7357622d authored by Markus Gothe's avatar Markus Gothe :ok_hand:
Browse files

Fix fallthrough attribute for older kernels.

parent 9a2af49b
No related branches found
No related tags found
1 merge request!12Fix fallthrough attribute for older kernels.
Pipeline #195606 passed
...@@ -29,6 +29,14 @@ ...@@ -29,6 +29,14 @@
#include <linux/netfilter_bridge/ebt_igmpsnooping.h> #include <linux/netfilter_bridge/ebt_igmpsnooping.h>
#include <net/netfilter/br_netfilter.h> #include <net/netfilter/br_netfilter.h>
#ifndef fallthrough
#if __has_attribute(__fallthrough__)
# define fallthrough __attribute__((__fallthrough__))
#else
# define fallthrough do {} while (0) /* fallthrough */
#endif
#endif
static DEFINE_SPINLOCK(igmp_lock); static DEFINE_SPINLOCK(igmp_lock);
static int igmp_snooping_show(struct seq_file *seq, void *v) static int igmp_snooping_show(struct seq_file *seq, void *v)
......
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
#include <linux/netfilter_bridge/ebt_mldsnooping.h> #include <linux/netfilter_bridge/ebt_mldsnooping.h>
#include <net/netfilter/br_netfilter.h> #include <net/netfilter/br_netfilter.h>
#ifndef fallthrough
#if __has_attribute(__fallthrough__)
# define fallthrough __attribute__((__fallthrough__))
#else
# define fallthrough do {} while (0) /* fallthrough */
#endif
#endif
static DEFINE_SPINLOCK(mld_lock); static DEFINE_SPINLOCK(mld_lock);
static int mld_snooping_show(struct seq_file *seq, void *v) static int mld_snooping_show(struct seq_file *seq, void *v)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment