diff --git a/src/Makefile b/src/Makefile index c67f2512254503c7c60383995bd32e2b8f97a211..0d76c98a2c6fc15a1525bc348b00c49e5119f3ad 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,3 +13,4 @@ obj-m += ebt_xtip.o obj-m += ebt_xtip6.o obj-m += ebt_igmpsnooping.o obj-m += ebt_mldsnooping.o +EXTRA_CFLAGS +=-Wno-incompatible-pointer-types diff --git a/src/ebt_igmpsnooping.c b/src/ebt_igmpsnooping.c index eaf5622770b8429841622f604dd565f107a8cdd5..ed21a2c9a70459a1d0eff1bd3b705dc8df688205 100644 --- a/src/ebt_igmpsnooping.c +++ b/src/ebt_igmpsnooping.c @@ -341,8 +341,9 @@ static int igmp_device_event(struct notifier_block *unused, unsigned long event, case NETDEV_CHANGE: if (netif_carrier_ok(dev)) return NOTIFY_DONE; - /* fall through */ - case NETDEV_UNREGISTER: /* fall through */ + fallthrough; + case NETDEV_UNREGISTER: + fallthrough; case NETDEV_DOWN: spin_lock_bh(&igmp_lock); list_for_each_safe(cur, next, &igmp_info_list) { diff --git a/src/ebt_mldsnooping.c b/src/ebt_mldsnooping.c index ef99fa7a61bf303391bffe9647be2d1adbb55371..9d18b3442df3f9baa8dace37b69e1ed8609ac098 100644 --- a/src/ebt_mldsnooping.c +++ b/src/ebt_mldsnooping.c @@ -351,8 +351,9 @@ static int mld_device_event(struct notifier_block *unused, unsigned long event, case NETDEV_CHANGE: if (netif_carrier_ok(dev)) return NOTIFY_DONE; - /* fall through */ - case NETDEV_UNREGISTER: /* fall through */ + fallthrough; + case NETDEV_UNREGISTER: + fallthrough; case NETDEV_DOWN: spin_lock_bh(&mld_lock); list_for_each_safe(cur, next, &mld_info_list) {