]> git.baikalelectronics.ru Git - kernel.git/commit
net: enetc: fix link error again
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Apr 2021 13:35:11 +0000 (15:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2021 20:23:07 +0000 (13:23 -0700)
commitb8d32eeeeede5072a279260f4644a73fbd744144
treeab0c96535238e2b1edbb948e73bbc2f1cee6bb21
parent3682d235d7724e6e1ac613e07142df7b75dc08cc
net: enetc: fix link error again

A link time bug that I had fixed before has come back now that
another sub-module was added to the enetc driver:

ERROR: modpost: "enetc_ierb_register_pf" [drivers/net/ethernet/freescale/enetc/fsl-enetc.ko] undefined!

The problem is that the enetc Makefile is not actually used for
the ierb module if that is the only built-in driver in there
and everything else is a loadable module.

Fix it by always entering the directory this time, regardless
of which symbols are configured. This should reliably fix the
problem and prevent it from coming back another time.

Fixes: 70aeb74e4020 ("net: dsa: felix: fix link error")
Fixes: 4ddad9860931 ("net: enetc: add a mini driver for the Integrated Endpoint Register Block")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/Makefile