From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
From: Antonio Quartulli
Date: Wed, 11 May 2016 18:29:16 +0800
Message-Id: <1462962557-23950-1-git-send-email-a@unstable.cc>
Subject: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: remove forward declaration
by including proper header
List-Id: The list for a Better Approach To Mobile Ad-hoc Networking
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Antonio Quartulli
If main.h is included, the forward declaration for struct batadv_priv
is not required.
Cc: Sven Eckelmann
Signed-off-by: Antonio Quartulli
---
Sven, is there any special region for not having the include in this file ?
It seems to be compiling just fine.
Cheers,
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 @@
#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_
#define _NET_BATMAN_ADV_BAT_ALGO_H_
-struct batadv_priv;
+#include "main.h"
int batadv_iv_init(void);
--
2.8.2