batman-adv: Add missing include for in_interrupt()
authorSven Eckelmann <sven@narfation.org>
Mon, 14 Sep 2020 11:58:16 +0000 (13:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:29 +0000 (17:36 +0200)
commite4e1b0f1fdea69f6a31f456d6b4f8aa3d4531d4d
treec4543d8646c2e877b88dc196060fe93320cf85b3
parent38c2ce54364738b7b3aa0fdbaf588635712bc942
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>
net/batman-adv/bridge_loop_avoidance.c