summaryrefslogtreecommitdiff
path: root/net/dsa/Makefile
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-11-21 16:55:41 +0300
committerJakub Kicinski <kuba@kernel.org>2022-11-23 07:41:46 +0300
commit5cf2c75b5b91bcf81d61b2d2ea1c71363bcacf89 (patch)
tree1bafe3106befdca7f83071c94d45928c29c26509 /net/dsa/Makefile
parentd2be320495b93ffb469e53100ba1668d0cd7eedc (diff)
downloadlinux-5cf2c75b5b91bcf81d61b2d2ea1c71363bcacf89.tar.xz
net: dsa: move bulk of devlink code to devlink.{c,h}
dsa.c and dsa2.c are bloated with too much off-topic code. Identify all code related to devlink and move it to a new devlink.c file. Steer clear of the dsa_priv.h dumping ground antipattern and create a dedicated devlink.h for it, which will be included only by the C files which need it. Usage of dsa_priv.h will be minimized in later patches. 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/Makefile')
-rw-r--r--net/dsa/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/Makefile b/net/dsa/Makefile
index 14e05ab64135..bc872c0d7011 100644
--- a/net/dsa/Makefile
+++ b/net/dsa/Makefile
@@ -2,6 +2,7 @@
# the core
obj-$(CONFIG_NET_DSA) += dsa_core.o
dsa_core-y += \
+ devlink.o \
dsa.o \
dsa2.o \
master.o \