net: mscc: ocelot: select PACKING in the Kconfig
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 17 Feb 2021 20:33:48 +0000 (22:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2021 21:16:29 +0000 (13:16 -0800)
Ocelot now uses include/linux/dsa/ocelot.h which makes use of
CONFIG_PACKING to pack/unpack bits into the Injection/Extraction Frame
Headers. So it needs to explicitly select it, otherwise there might be
build errors due to the missing dependency.

Fixes: 40d3f295b5fe ("net: mscc: ocelot: use common tag parsing code with DSA")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/Kconfig

index ee7bb7e..c0ede0c 100644 (file)
@@ -14,6 +14,7 @@ if NET_VENDOR_MICROSEMI
 # Users should depend on NET_SWITCHDEV, HAS_IOMEM
 config MSCC_OCELOT_SWITCH_LIB
        select REGMAP_MMIO
+       select PACKING
        select PHYLIB
        tristate
        help