batman-adv: Add missing include for atomic functions
authorSven Eckelmann <sven@narfation.org>
Fri, 24 May 2019 14:51:29 +0000 (16:51 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 25 May 2019 10:59:53 +0000 (12:59 +0200)
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>
net/batman-adv/log.h
net/batman-adv/main.h

index 5504637e63d80ae0ff81b2803e4d7b0fb4dbf005..741cfa3719ff192997d983c996bdbb268f8917f1 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "main.h"
 
+#include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <linux/printk.h>
index 11d051dbbda4dbf6ae6653b71c679172012bcbc7..821a7de45256210459b4dbc209a5c779bf407321 100644 (file)
@@ -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>