mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 04:14:24 +00:00
A recent bugfix introduced a new problem with Kconfig dependencies:
WARNING: unmet direct dependencies detected for CAN_DEV
Depends on [n]: NETDEVICES [=n] && CAN [=m]
Selected by [m]:
- CAN [=m] && NET [=y]
Since the CAN core code now links into the CAN device code, that
particular function needs to be available, though the rest of it
does not.
Revert the incomplete fix and instead use Makefile logic to avoid
the link failure.
Fixes: cb2dc6d286 ("can: Kconfig: select CAN driver infrastructure by default")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Arnd Bergmann <[email protected]>
Tested-by: Oliver Hartkopp <[email protected]>
Acked-by: Oliver Hartkopp <[email protected]>
Link: https://patch.msgid.link/[email protected]
[mkl: removed module option from CAN_DEV help text (thanks Vincent)]
[mkl: removed '&& CAN' from Kconfig dependency (thanks Vincent)]
Signed-off-by: Marc Kleine-Budde <[email protected]>
12 lines
378 B
Makefile
12 lines
378 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_CAN) += can-dev.o
|
|
|
|
can-dev-$(CONFIG_CAN_DEV) += skb.o
|
|
can-dev-$(CONFIG_CAN_CALC_BITTIMING) += calc_bittiming.o
|
|
can-dev-$(CONFIG_CAN_NETLINK) += bittiming.o
|
|
can-dev-$(CONFIG_CAN_NETLINK) += dev.o
|
|
can-dev-$(CONFIG_CAN_NETLINK) += length.o
|
|
can-dev-$(CONFIG_CAN_NETLINK) += netlink.o
|
|
can-dev-$(CONFIG_CAN_RX_OFFLOAD) += rx-offload.o
|