mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
batman-adv: Use includes instead of fwdecls
While it can be slightly beneficial for the build performance to use forward declarations instead of includes, the handling of them together with changes in the included headers makes it unnecessary complicated and fragile. Just replace them with actual includes since some parts (hwmon, ..) of the kernel even request avoidance of forward declarations and net/ is mostly not using them in *.c file. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:
parent
47d4522dd5
commit
68a600de9a
28 changed files with 60 additions and 80 deletions
|
@ -10,14 +10,13 @@
|
|||
#include "main.h"
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/stddef.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct net_device;
|
||||
struct netlink_callback;
|
||||
struct seq_file;
|
||||
struct sk_buff;
|
||||
|
||||
/**
|
||||
* batadv_bla_is_loopdetect_mac() - check if the mac address is from a loop
|
||||
* detect frame sent by bridge loop avoidance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue