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

Net: rds: Makefile: Remove deprecated items

Changed Makefile to use <modules>-y instead of <modules>-objs
because -objs is deprecated and not mentioned in
Documentation/kbuild/makefiles.txt.

Also, use the ccflags-$ flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is
deprecated and should now be switched.

Last but not least, took out if-conditionals.

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tracey Dent and committed by
David S. Miller
094f2faa 927a41f5

+3 -5
+3 -5
net/rds/Makefile
··· 4 4 loop.o page.o rdma.o 5 5 6 6 obj-$(CONFIG_RDS_RDMA) += rds_rdma.o 7 - rds_rdma-objs := rdma_transport.o \ 7 + rds_rdma-y := rdma_transport.o \ 8 8 ib.o ib_cm.o ib_recv.o ib_ring.o ib_send.o ib_stats.o \ 9 9 ib_sysctl.o ib_rdma.o \ 10 10 iw.o iw_cm.o iw_recv.o iw_ring.o iw_send.o iw_stats.o \ ··· 12 12 13 13 14 14 obj-$(CONFIG_RDS_TCP) += rds_tcp.o 15 - rds_tcp-objs := tcp.o tcp_connect.o tcp_listen.o tcp_recv.o \ 15 + rds_tcp-y := tcp.o tcp_connect.o tcp_listen.o tcp_recv.o \ 16 16 tcp_send.o tcp_stats.o 17 17 18 - ifeq ($(CONFIG_RDS_DEBUG), y) 19 - EXTRA_CFLAGS += -DDEBUG 20 - endif 18 + ccflags-$(CONFIG_RDS_DEBUG) := -DDEBUG 21 19