diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-05-05 06:19:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-06 00:52:42 -0400 |
commit | 146c1bed44a172d0686ad1f5427d9458b619f4d5 (patch) | |
tree | 052575c800a0841739c64ac28fa936cc6dc3689f /net/dsa | |
parent | b2243b369c7862e29cc9163184fef00d0fb0842a (diff) |
net: dsa: Export symbols for dsa_port_vid_{add, del}
This is needed so that the newly introduced tag_8021q may access these
core DSA functions when built as a module.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/port.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dsa/port.c b/net/dsa/port.c index 1ed287b2badd..ed8ba9daa3ba 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c | |||
@@ -389,6 +389,7 @@ int dsa_port_vid_add(struct dsa_port *dp, u16 vid, u16 flags) | |||
389 | trans.ph_prepare = false; | 389 | trans.ph_prepare = false; |
390 | return dsa_port_vlan_add(dp, &vlan, &trans); | 390 | return dsa_port_vlan_add(dp, &vlan, &trans); |
391 | } | 391 | } |
392 | EXPORT_SYMBOL(dsa_port_vid_add); | ||
392 | 393 | ||
393 | int dsa_port_vid_del(struct dsa_port *dp, u16 vid) | 394 | int dsa_port_vid_del(struct dsa_port *dp, u16 vid) |
394 | { | 395 | { |
@@ -400,6 +401,7 @@ int dsa_port_vid_del(struct dsa_port *dp, u16 vid) | |||
400 | 401 | ||
401 | return dsa_port_vlan_del(dp, &vlan); | 402 | return dsa_port_vlan_del(dp, &vlan); |
402 | } | 403 | } |
404 | EXPORT_SYMBOL(dsa_port_vid_del); | ||
403 | 405 | ||
404 | static struct phy_device *dsa_port_get_phy_device(struct dsa_port *dp) | 406 | static struct phy_device *dsa_port_get_phy_device(struct dsa_port *dp) |
405 | { | 407 | { |