summaryrefslogtreecommitdiff
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2019-05-24 17:51:29 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2019-05-25 13:59:53 +0300
commit47d4522dd5130361d463b47f0e9a687c4b6697c2 (patch)
treebc73d77c1018ce9644e65e715a73c2201240745a /net/batman-adv/main.h
parente1928752988bd95316676fea234475327726e22d (diff)
downloadlinux-47d4522dd5130361d463b47f0e9a687c4b6697c2.tar.xz
batman-adv: Add missing include for atomic functions
main.h is using atomic_add_unless and log.h atomic_read. The main header linux/atomic.h should be included for these files. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 11d051dbbda4..821a7de45256 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -205,6 +205,7 @@ enum batadv_uev_type {
/* Kernel headers */
+#include <linux/atomic.h>
#include <linux/compiler.h>
#include <linux/etherdevice.h>
#include <linux/if_vlan.h>