Skip to content

Commit

Permalink
batman-adv: Add missing include for atomic functions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
  • Loading branch information
ecsv authored and simonwunderlich committed May 25, 2019
1 parent e192875 commit 47d4522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/batman-adv/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include "main.h"

#include <linux/atomic.h>
#include <linux/bitops.h>
#include <linux/compiler.h>
#include <linux/printk.h>
Expand Down
1 change: 1 addition & 0 deletions net/batman-adv/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 47d4522

Please sign in to comment.