summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorVivien Didelot2017-05-17 21:46:03 +0200
committerDavid S. Miller2017-05-18 16:40:12 +0200
commitea5dd34be1cfb2400587a24d1de75e538e77ce74 (patch)
tree8b5e53ff930b9aaaf09474b09dd5213252dd1b71 /net/dsa/dsa_priv.h
parentnet: fix __skb_try_recv_from_queue to return the old behavior (diff)
downloadkernel-qcow2-linux-ea5dd34be1cfb2400587a24d1de75e538e77ce74.tar.gz
kernel-qcow2-linux-ea5dd34be1cfb2400587a24d1de75e538e77ce74.tar.xz
kernel-qcow2-linux-ea5dd34be1cfb2400587a24d1de75e538e77ce74.zip
net: dsa: include dsa.h only once
The public include/net/dsa.h file is meant for DSA drivers, while all DSA core files share a common private header net/dsa/dsa_priv.h file. Ensure that dsa_priv.h is the only DSA core file to include net/dsa.h, and add a new line to separate absolute and relative headers at the same time. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r--net/dsa/dsa_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index e9003b79cbbc..c274130e3ac9 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -14,6 +14,7 @@
#include <linux/phy.h>
#include <linux/netdevice.h>
#include <linux/netpoll.h>
+#include <net/dsa.h>
struct dsa_device_ops {
struct sk_buff *(*xmit)(struct sk_buff *skb, struct net_device *dev);