summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2020-09-14 13:58:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-01 20:40:18 +0200
commitbe23ff8b9e5b5c6a6d933077a74756ed6685fc74 (patch)
tree5ddfabd16c97756e092824c2acfc0b18feeb54be /net
parent20191c798611841f252facd81b702b640e94bd15 (diff)
downloadlinux-stable-be23ff8b9e5b5c6a6d933077a74756ed6685fc74.tar.gz
linux-stable-be23ff8b9e5b5c6a6d933077a74756ed6685fc74.tar.bz2
linux-stable-be23ff8b9e5b5c6a6d933077a74756ed6685fc74.zip
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>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/bridge_loop_avoidance.c1
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 f8b117acb944..f24b1cee4993 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -36,6 +36,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>