diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-05-15 05:07:41 -0400 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-06-30 04:29:43 -0400 |
commit | 67a5613ed09e1b9d5d188507bcbaeb37a6d0fe12 (patch) | |
tree | e61cf1bb227b7d9b7200853cdf1e8614de4cb7a3 /net/batman-adv | |
parent | 4e3e823b5a503235630921287f130e1d8d22d200 (diff) |
batman-adv: Include main.h in bat_v_ogm.h
main.h includes statements which (re)define preprocessor variables which
influence the compiled code. This makes it necessary to include it in all
files. For example, it redefines pr_fmt used to the module as prefix for
each pr_* message.
Reported-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/bat_v_ogm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bat_v_ogm.h b/net/batman-adv/bat_v_ogm.h index d849c75ada0e..4c4d45caa422 100644 --- a/net/batman-adv/bat_v_ogm.h +++ b/net/batman-adv/bat_v_ogm.h | |||
@@ -18,10 +18,10 @@ | |||
18 | #ifndef _BATMAN_ADV_BATADV_V_OGM_H_ | 18 | #ifndef _BATMAN_ADV_BATADV_V_OGM_H_ |
19 | #define _BATMAN_ADV_BATADV_V_OGM_H_ | 19 | #define _BATMAN_ADV_BATADV_V_OGM_H_ |
20 | 20 | ||
21 | #include "main.h" | ||
22 | |||
21 | #include <linux/types.h> | 23 | #include <linux/types.h> |
22 | 24 | ||
23 | struct batadv_hard_iface; | ||
24 | struct batadv_priv; | ||
25 | struct sk_buff; | 25 | struct sk_buff; |
26 | 26 | ||
27 | int batadv_v_ogm_init(struct batadv_priv *bat_priv); | 27 | int batadv_v_ogm_init(struct batadv_priv *bat_priv); |