OSDN Git Service

net: lan966x: Fix builds for lan966x driver
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 2 Dec 2021 08:15:11 +0000 (09:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 12:24:08 +0000 (12:24 +0000)
The lan966x is using the function 'packing' to create/extract the
information for the IFH, that is used to be added in front of the frames
when they are injected/extracted.
Therefore update the Kconfig to select config option 'PACKING' whenever
lan966x driver is enabled.

Fixes: db8bcaad539314 ("net: lan966x: add the basic lan966x driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/Kconfig

index 83ac426..2860a8c 100644 (file)
@@ -3,5 +3,6 @@ config LAN966X_SWITCH
        depends on HAS_IOMEM
        depends on OF
        select PHYLINK
+       select PACKING
        help
          This driver supports the Lan966x network switch device.