diff options
author | Sven Eckelmann <sven@narfation.org> | 2020-09-14 13:58:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-01 13:18:19 +0200 |
commit | 8c6ba1878a9256b5b3f8e6acf83add5ed3f621c2 (patch) | |
tree | 1305916419212bf0298555e89fb2512515d63f9c | |
parent | 248c25e7725ac1fa6edb2daa8bcd09455c82e927 (diff) | |
download | linux-stable-8c6ba1878a9256b5b3f8e6acf83add5ed3f621c2.tar.gz |
batman-adv: Add missing include for in_interrupt()
[ Upstream commit 4bba9dab86b6ac15ca560ef1f2b5aa4529cbf784 ]
The fix for receiving (internally generated) bla packets outside the
interrupt context introduced the usage of in_interrupt(). But this
functionality is only defined in linux/preempt.h which was not included
with the same patch.
Fixes: 279e89b2281a ("batman-adv: bla: use netif_rx_ni when not in interrupt context")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 62d2e766dd3929..fe406c17b2c0aa 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -25,6 +25,7 @@ #include <linux/lockdep.h> #include <linux/netdevice.h> #include <linux/netlink.h> +#include <linux/preempt.h> #include <linux/rculist.h> #include <linux/rcupdate.h> #include <linux/seq_file.h> |