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(-)
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>
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
b.a.t.m.a.n@lists.open-mesh.org