diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-11-21 14:55:41 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-23 05:41:46 +0100 |
commit | 5cf2c75b5b91bcf81d61b2d2ea1c71363bcacf89 (patch) | |
tree | 1bafe3106befdca7f83071c94d45928c29c26509 /net/dsa/Makefile | |
parent | net: dsa: modularize DSA_TAG_PROTO_NONE (diff) | |
download | linux-5cf2c75b5b91bcf81d61b2d2ea1c71363bcacf89.tar.xz linux-5cf2c75b5b91bcf81d61b2d2ea1c71363bcacf89.zip |
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/Makefile | 1 |
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 \ |