Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932622Ab1ERF2M (ORCPT ); Wed, 18 May 2011 01:28:12 -0400 Received: from 64.mail-out.ovh.net ([91.121.185.65]:57399 "HELO 64.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752025Ab1ERF2K (ORCPT ); Wed, 18 May 2011 01:28:10 -0400 Date: Wed, 18 May 2011 07:16:45 +0200 From: Jean-Christophe PLAGNIOL-VILLARD To: Sam Ravnborg Cc: Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kconfig: Only generate config_is_xxx for bool and tristate options Message-ID: <20110518051645.GB15292@game.jcrosoft.org> References: <1305646532-29114-1-git-send-email-mmarek@suse.cz> <20110517195310.GA17003@merkur.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110517195310.GA17003@merkur.ravnborg.org> X-PGP-Key: http://uboot.jcrosoft.org/plagnioj.asc X-PGP-key-fingerprint: 6309 2BBA 16C8 3A07 1772 CC24 DEFC FFA3 279C CE7C User-Agent: Mutt/1.5.20 (2009-06-14) X-Ovh-Tracer-Id: 6405526046704708505 X-Ovh-Remote: 213.251.161.87 (ns32433.ovh.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.500002/N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1052 Lines: 36 On 21:53 Tue 17 May , Sam Ravnborg wrote: > On Tue, May 17, 2011 at 05:35:32PM +0200, Michal Marek wrote: > > For strings and integers, the config_is_xxx macros are useless and > > sometimes misleading: > > > > #define CONFIG_INITRAMFS_SOURCE "" > > #define config_is_initramfs_source() 1 > > I'm late with this comment.... > Could we introduce "config_is_foo" using a syntax that > does not break grepability? > > Maybe a syntax like this? > > #ifdef CONFIG_FOO > > and > > if (KCONFIG_FOO()) > > Grepping for the use of a symbol is a very typical thing, > so we should try to keep this. > And with the suggested syntax above I expect fixdep to > catch up both usage types. I'll prefer kconfig_foo() not uppercase but if we use KCONFIG_FOO no need to touch fixdep Best Regards, J. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/