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

net: l3mdev: use obj-$(CONFIG_NET_L3_MASTER_DEV) form in net/Makefile

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

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

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20210125231659.106201-4-masahiroy@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Masahiro Yamada and committed by
Jakub Kicinski
d32f834c 0cfd99b4

+2 -4
+1 -3
net/Makefile
··· 73 73 obj-$(CONFIG_NET_NSH) += nsh/ 74 74 obj-$(CONFIG_HSR) += hsr/ 75 75 obj-$(CONFIG_NET_SWITCHDEV) += switchdev/ 76 - ifneq ($(CONFIG_NET_L3_MASTER_DEV),) 77 - obj-y += l3mdev/ 78 - endif 76 + obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev/ 79 77 obj-$(CONFIG_QRTR) += qrtr/ 80 78 obj-$(CONFIG_NET_NCSI) += ncsi/ 81 79 obj-$(CONFIG_XDP_SOCKETS) += xdp/
+1 -1
net/l3mdev/Makefile
··· 3 3 # Makefile for the L3 device API 4 4 # 5 5 6 - obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev.o 6 + obj-y += l3mdev.o