summaryrefslogtreecommitdiffstats
path: root/net/dsa/netlink.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-11-21 15:55:46 +0200
committerJakub Kicinski <kuba@kernel.org>2022-11-22 20:41:49 -0800
commit09f92341681a23346c456938bcb2670de2cd99d4 (patch)
treeaae7cdaa6ffd5804e3ac3702c35e805675951acd /net/dsa/netlink.c
parent94ef6fad3bf317b43cdc59ba171dff2486e59975 (diff)
downloadlinux-09f92341681a23346c456938bcb2670de2cd99d4.tar.bz2
net: dsa: move headers exported by slave.c to slave.h
Minimize the use of the bloated dsa_priv.h by moving the prototypes exported by slave.c to their own header file. This is just approximate to get the code structure right. There are some interdependencies with static inline code left in dsa_priv.h, so leave slave.h included from there for now. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/netlink.c')
-rw-r--r--net/dsa/netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/netlink.c b/net/dsa/netlink.c
index ecf9ed1de185..824b09d904cc 100644
--- a/net/dsa/netlink.c
+++ b/net/dsa/netlink.c
@@ -5,6 +5,7 @@
#include <net/rtnetlink.h>
#include "dsa_priv.h"
+#include "slave.h"
static const struct nla_policy dsa_policy[IFLA_DSA_MAX + 1] = {
[IFLA_DSA_MASTER] = { .type = NLA_U32 },