batman-adv: Add missing include for bat_sys.h

Message ID 1283617851-29956-1-git-send-email-sven.eckelmann@gmx.de (mailing list archive)
State Accepted, archived
Headers

Commit Message

Sven Eckelmann Sept. 4, 2010, 4:30 p.m. UTC
  soft_interface.c needs sysfs_add_meshif and sysfs_del_meshif after
"batman-adv: attach each hard-interface to a soft-interface". This
Include is provided indirectly using compat.h on standalone sources, but
missing on kernel builds.

We should add it directly as the compat.h include is only a side effect
we cannot rely on.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
 batman-adv/soft-interface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
  

Comments

Marek Lindner Sept. 4, 2010, 10:37 p.m. UTC | #1
On Saturday 04 September 2010 18:30:51 Sven Eckelmann wrote:
> soft_interface.c needs sysfs_add_meshif and sysfs_del_meshif after
> "batman-adv: attach each hard-interface to a soft-interface". This
> Include is provided indirectly using compat.h on standalone sources, but
> missing on kernel builds.
> 
> We should add it directly as the compat.h include is only a side effect
> we cannot rely on.

Applied in revision 1785.

Thanks,
Marek
  

Patch

diff --git a/batman-adv/soft-interface.c b/batman-adv/soft-interface.c
index 38134ae..28bd6a2 100644
--- a/batman-adv/soft-interface.c
+++ b/batman-adv/soft-interface.c
@@ -31,6 +31,7 @@ 
 #include "gateway_common.h"
 #include "gateway_client.h"
 #include "send.h"
+#include "bat_sysfs.h"
 #include <linux/slab.h>
 #include <linux/ethtool.h>
 #include <linux/etherdevice.h>