[1/2] batman-adv: remove forward declaration by including proper header

Message ID 1462962557-23950-1-git-send-email-a@unstable.cc
State Superseded, archived
Delegated to: Marek Lindner

Commit Message

Antonio Quartulli May 11, 2016, 10:29 a.m. UTC
  If main.h is included, the forward declaration for struct batadv_priv
is not required.

Cc: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>

Sven, is there any special region for not having the include in this file ?
It seems to be compiling just fine.


 net/batman-adv/bat_algo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/net/batman-adv/bat_algo.h b/net/batman-adv/bat_algo.h
index 03dafd3..b727762 100644
--- a/net/batman-adv/bat_algo.h
+++ b/net/batman-adv/bat_algo.h
@@ -18,7 +18,7 @@ 
-struct batadv_priv;
+#include "main.h"
 int batadv_iv_init(void);