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

net: dcb: use obj-$(CONFIG_DCB) form in net/Makefile

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

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

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

authored by

Masahiro Yamada and committed by
Jakub Kicinski
1e328ed5 8b5f4eb3

+2 -4
+1 -3
net/Makefile
··· 55 55 obj-$(CONFIG_RFKILL) += rfkill/ 56 56 obj-$(CONFIG_NET_9P) += 9p/ 57 57 obj-$(CONFIG_CAIF) += caif/ 58 - ifneq ($(CONFIG_DCB),) 59 - obj-y += dcb/ 60 - endif 58 + obj-$(CONFIG_DCB) += dcb/ 61 59 obj-$(CONFIG_6LOWPAN) += 6lowpan/ 62 60 obj-$(CONFIG_IEEE802154) += ieee802154/ 63 61 obj-$(CONFIG_MAC802154) += mac802154/
+1 -1
net/dcb/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - obj-$(CONFIG_DCB) += dcbnl.o dcbevent.o 2 + obj-y += dcbnl.o dcbevent.o