Skip to content

Commit d32f834

Browse files
masahir0ykuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0cfd99b commit d32f834

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

net/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ obj-$(CONFIG_MPLS) += mpls/
7373
obj-$(CONFIG_NET_NSH) += nsh/
7474
obj-$(CONFIG_HSR) += hsr/
7575
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/
7977
obj-$(CONFIG_QRTR) += qrtr/
8078
obj-$(CONFIG_NET_NCSI) += ncsi/
8179
obj-$(CONFIG_XDP_SOCKETS) += xdp/

net/l3mdev/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Makefile for the L3 device API
44
#
55

6-
obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev.o
6+
obj-y += l3mdev.o

0 commit comments

Comments
 (0)