From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756579Ab0IYL0W (ORCPT ); Sat, 25 Sep 2010 07:26:22 -0400 Received: from zone0.gcu-squad.org ([212.85.147.21]:16963 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754876Ab0IYL0U (ORCPT ); Sat, 25 Sep 2010 07:26:20 -0400 Date: Sat, 25 Sep 2010 13:26:11 +0200 From: Jean Delvare To: matt mooney Cc: kernel-janitors@vger.kernel.org, "Ben Dooks (embedded platforms)" , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/24] i2c: change to new flag variable Message-ID: <20100925132611.03ef0882@endymion.delvare> In-Reply-To: References: <9968d4260be8850200cc9c7dfe08addf611468b4.1285355033.git.mfm@muteddisk.com> <036514b5dd23c5af14303519d79d60d79adccbee.1285355033.git.mfm@muteddisk.com> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Sep 2010 12:17:15 -0700, matt mooney wrote: > Replace EXTRA_CFLAGS with ccflags-y. > > Signed-off-by: matt mooney > --- > drivers/i2c/Makefile | 4 +--- > drivers/i2c/algos/Makefile | 4 +--- > drivers/i2c/busses/Makefile | 4 +--- > drivers/i2c/muxes/Makefile | 4 +--- > 4 files changed, 4 insertions(+), 12 deletions(-) > > diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile > index c00fd66..23ac61e 100644 > --- a/drivers/i2c/Makefile > +++ b/drivers/i2c/Makefile > @@ -9,6 +9,4 @@ obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o > obj-$(CONFIG_I2C_MUX) += i2c-mux.o > obj-y += algos/ busses/ muxes/ > > -ifeq ($(CONFIG_I2C_DEBUG_CORE),y) > -EXTRA_CFLAGS += -DDEBUG > -endif > +ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG > diff --git a/drivers/i2c/algos/Makefile b/drivers/i2c/algos/Makefile > index 18b3e96..215303f 100644 > --- a/drivers/i2c/algos/Makefile > +++ b/drivers/i2c/algos/Makefile > @@ -6,6 +6,4 @@ obj-$(CONFIG_I2C_ALGOBIT) += i2c-algo-bit.o > obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o > obj-$(CONFIG_I2C_ALGOPCA) += i2c-algo-pca.o > > -ifeq ($(CONFIG_I2C_DEBUG_ALGO),y) > -EXTRA_CFLAGS += -DDEBUG > -endif > +ccflags-$(CONFIG_I2C_DEBUG_ALGO) := -DDEBUG > diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile > index c3ef492..033ad41 100644 > --- a/drivers/i2c/busses/Makefile > +++ b/drivers/i2c/busses/Makefile > @@ -76,6 +76,4 @@ obj-$(CONFIG_I2C_STUB) += i2c-stub.o > obj-$(CONFIG_SCx200_ACB) += scx200_acb.o > obj-$(CONFIG_SCx200_I2C) += scx200_i2c.o > > -ifeq ($(CONFIG_I2C_DEBUG_BUS),y) > -EXTRA_CFLAGS += -DDEBUG > -endif > +ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG > diff --git a/drivers/i2c/muxes/Makefile b/drivers/i2c/muxes/Makefile > index bd83b52..6f49786 100644 > --- a/drivers/i2c/muxes/Makefile > +++ b/drivers/i2c/muxes/Makefile > @@ -3,6 +3,4 @@ > > obj-$(CONFIG_I2C_MUX_PCA954x) += pca954x.o > > -ifeq ($(CONFIG_I2C_DEBUG_BUS),y) > -EXTRA_CFLAGS += -DDEBUG > -endif > +ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG If this is the way the whole kernel is going, I have no objection. -- Jean Delvare