Skip to contentSkip to conversation

drivers/dma/: Use the ccflag-y instead of EXTRA_CFLAGS

PATCH New Tracey Dent 1 participant 2 messages Nov 6, 2010 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drivers/dma/: Use the ccflag-y instead of EXTRA_CFLAGS

Use the ccflag-y flag instead of EXTRA_CFLAGS because EXTRA_CFLAGS is deprecated and should now be switched. According to (documentation/kbuild/makefiles.txt).

---
 drivers/dma/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/dma/Makefile +2 -2
index a8a84f4..64b21f5 100644
@@ -1,8 +1,8 @@
 ifeq ($(CONFIG_DMADEVICES_DEBUG),y)
-	EXTRA_CFLAGS	+= -DDEBUG
+	ccflags-y	+= -DDEBUG
 endif
 ifeq ($(CONFIG_DMADEVICES_VDEBUG),y)
-	EXTRA_CFLAGS	+= -DVERBOSE_DEBUG
+	ccflags-y	+= -DVERBOSE_DEBUG
 endif
 
 obj-$(CONFIG_DMA_ENGINE) += dmaengine.o
Signature · 1 line
1.7.3.1.104.gc752e
#1 lore raw

PATCH 2/2 drivers/dma/ioat: Use the ccflag-y instead of EXTRA_CFLAGS

Changed Makefile to use <modules>-y instead of <modules>-objs. Following (documentation/kbuild/makefiles.txt).

---
 drivers/dma/ioat/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/ioat/Makefile +1 -1
index 8997d3f..0ff7270 100644
@@ -1,2 +1,2 @@
 obj-$(CONFIG_INTEL_IOATDMA) += ioatdma.o
-ioatdma-objs := pci.o dma.o dma_v2.o dma_v3.o dca.o
+ioatdma-y := pci.o dma.o dma_v2.o dma_v3.o dca.o
Signature · 1 line
1.7.3.1.104.gc752e