]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: tag_brcm: Avoid unused symbols
authorAndrew Lunn <andrew@lunn.ch>
Sun, 28 Apr 2019 17:37:22 +0000 (19:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 23:41:01 +0000 (19:41 -0400)
commit60425b6d8288bd46471c81e80a9279fc05182820
tree603ee23156f21fe7366172aa6b3d766b8ba96ea1
parent7e878b2369073b2195461286814fc1abcf19d209
dsa: tag_brcm: Avoid unused symbols

It is possible that the driver is compiled with both
CONFIG_NET_DSA_TAG_BRCM and CONFIG_NET_DSA_TAG_BRCM_PREPEND disabled.
This results in warnings about unused symbols. Add some conditional
compilation to avoid this.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
v2
Reorder patch to before tag drivers can be modules

Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_brcm.c