Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: switchdev: use obj-$(CONFIG_NET_SWITCHDEV) form in net/Makefile

CONFIG_NET_SWITCHDEV is a bool option. Change the ifeq conditional to
the standard obj-$(CONFIG_NET_SWITCHDEV) form.

Use obj-y in net/switchdev/Makefile because Kbuild visits this Makefile
only when CONFIG_NET_SWITCHDEV=y.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210125231659.106201-3-masahiroy@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Masahiro Yamada and committed by
Jakub Kicinski
0cfd99b4 1e328ed5

+2 -4
+1 -3
net/Makefile
··· 72 72 obj-$(CONFIG_MPLS) += mpls/ 73 73 obj-$(CONFIG_NET_NSH) += nsh/ 74 74 obj-$(CONFIG_HSR) += hsr/ 75 - ifneq ($(CONFIG_NET_SWITCHDEV),) 76 - obj-y += switchdev/ 77 - endif 75 + obj-$(CONFIG_NET_SWITCHDEV) += switchdev/ 78 76 ifneq ($(CONFIG_NET_L3_MASTER_DEV),) 79 77 obj-y += l3mdev/ 80 78 endif
+1 -1
net/switchdev/Makefile
··· 3 3 # Makefile for the Switch device API 4 4 # 5 5 6 - obj-$(CONFIG_NET_SWITCHDEV) += switchdev.o 6 + obj-y += switchdev.o