mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: break include loop netdevice.h, dsa.h, devlink.h
There is an include loop between netdevice.h, dsa.h, devlink.h because of NETDEV_ALIGN, making it impossible to use devlink structures in dsa.h. Break this loop by taking dsa.h out of netdevice.h, add a forward declaration of dsa_switch_tree and netdev_set_default_ethtool_ops() function, which is what netdevice.h requires. No longer having dsa.h in netdevice.h means the includes in dsa.h no longer get included. This breaks a few other files which depend on these includes. Add these directly in the affected file. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0e42c72195
commit
c6e970a04b
24 changed files with 36 additions and 14 deletions
|
@ -57,6 +57,7 @@
|
|||
#include <linux/export.h>
|
||||
#include <net/net_namespace.h>
|
||||
#include <net/arp.h>
|
||||
#include <net/dsa.h>
|
||||
#include <net/ip.h>
|
||||
#include <net/ipconfig.h>
|
||||
#include <net/route.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue