]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: build as module when tc-taprio is module
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 4 Jul 2022 19:02:41 +0000 (22:02 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Jul 2022 00:50:38 +0000 (17:50 -0700)
commitd72a38edb789861a3cdd3540494c5ca64fbfb52d
tree951283d08f1a1c76e55e6d97c56eae45b30e2448
parentc06785b5f7cd15351a21908c0e7e2fff50920342
net: dsa: felix: build as module when tc-taprio is module

felix_vsc9959.c calls taprio_offload_get() and taprio_offload_free(),
symbols exported by net/sched/sch_taprio.c. As such, we must disallow
building the Felix driver as built-in when the symbol exported by
tc-taprio isn't present in the kernel image.

Fixes: c21113528dea ("net: dsa: felix: keep reference on entire tc-taprio config")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220704190241.1288847-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/ocelot/Kconfig