Skip to content

Commit

Permalink
net: switchdev: use obj-$(CONFIG_NET_SWITCHDEV) form in net/Makefile
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
masahir0y authored and kuba-moo committed Jan 28, 2021
1 parent 1e328ed commit 0cfd99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ obj-$(CONFIG_VSOCKETS) += vmw_vsock/
obj-$(CONFIG_MPLS) += mpls/
obj-$(CONFIG_NET_NSH) += nsh/
obj-$(CONFIG_HSR) += hsr/
ifneq ($(CONFIG_NET_SWITCHDEV),)
obj-y += switchdev/
endif
obj-$(CONFIG_NET_SWITCHDEV) += switchdev/
ifneq ($(CONFIG_NET_L3_MASTER_DEV),)
obj-y += l3mdev/
endif
Expand Down
2 changes: 1 addition & 1 deletion net/switchdev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Makefile for the Switch device API
#

obj-$(CONFIG_NET_SWITCHDEV) += switchdev.o
obj-y += switchdev.o

0 comments on commit 0cfd99b

Please sign in to comment.