summaryrefslogtreecommitdiffstats
path: root/net/dsa/switch.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-11-21 15:55:48 +0200
committerJakub Kicinski <kuba@kernel.org>2022-11-22 20:41:51 -0800
commit0c603136e1e0868fb5325c3b2addc669a10ed384 (patch)
treed26685177c3d4cd44b2286f4004a71d4c3dedd5b /net/dsa/switch.c
parentbd954b826032e7bd6be8a53e30eb81c1b348aef6 (diff)
downloadlinux-0c603136e1e0868fb5325c3b2addc669a10ed384.tar.gz
linux-0c603136e1e0868fb5325c3b2addc669a10ed384.tar.bz2
linux-0c603136e1e0868fb5325c3b2addc669a10ed384.zip
net: dsa: move headers exported by switch.c to switch.h
Reduce code bloat in dsa_priv.h by moving the prototypes exported by switch.h into their own header file. 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/switch.c')
-rw-r--r--net/dsa/switch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/switch.c b/net/dsa/switch.c
index d0d5a1c7e6f6..6a1c84c5ec8b 100644
--- a/net/dsa/switch.c
+++ b/net/dsa/switch.c
@@ -15,6 +15,7 @@
#include "dsa_priv.h"
#include "port.h"
#include "slave.h"
+#include "switch.h"
static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds,
unsigned int ageing_time)