batman-adv: Add missing include for bat_sys.h
Commit Message
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
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
@@ -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>