[commits] [batman-adv] master: batman-adv: Add missing include for atomic functions (49ddb2f3)

postmaster at open-mesh.org postmaster at open-mesh.org
Sun May 26 13:10:28 CEST 2019


Repository : ssh://git@open-mesh.org/batman-adv

On branch  : master

>---------------------------------------------------------------

commit 49ddb2f35ea8c232527c3b119143461ca2ccd46e
Author: Sven Eckelmann <sven at narfation.org>
Date:   Fri May 24 16:51:29 2019 +0200

    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 at narfation.org>


>---------------------------------------------------------------

49ddb2f35ea8c232527c3b119143461ca2ccd46e
 net/batman-adv/log.h  | 1 +
 net/batman-adv/main.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/net/batman-adv/log.h b/net/batman-adv/log.h
index 5504637e..741cfa37 100644
--- a/net/batman-adv/log.h
+++ b/net/batman-adv/log.h
@@ -9,6 +9,7 @@
 
 #include "main.h"
 
+#include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <linux/printk.h>
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 11d051db..821a7de4 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>



More information about the commits mailing list