Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932079Ab1EQSbA (ORCPT ); Tue, 17 May 2011 14:31:00 -0400 Received: from 64.mail-out.ovh.net ([91.121.185.65]:44363 "HELO 64.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756077Ab1EQSa7 (ORCPT ); Tue, 17 May 2011 14:30:59 -0400 Date: Tue, 17 May 2011 20:19:38 +0200 From: Jean-Christophe PLAGNIOL-VILLARD To: Michal Marek Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH v2] kconfig: autogenerated config_is_xxx macro Message-ID: <20110517181938.GD18699@game.jcrosoft.org> References: <1304658229-30820-1-git-send-email-plagnioj@jcrosoft.com> <20110517144510.GQ13293@sepie.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110517144510.GQ13293@sepie.suse.cz> 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: 13753993263745968969 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.5/N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 33 On 16:45 Tue 17 May , Michal Marek wrote: > On Fri, May 06, 2011 at 07:03:49AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > this will allow to use to use > > > > if(config_is_xxx()) > > if(config_is_xxx_module()) > > > > in the code instead of > > > > #ifdef CONFIG_xxx > > #ifdef CONFIG_xxx_MODULE > > > > and now let the compiler remove the non usefull code and not the > > pre-processor > > > > as done in the mach-types for arm as exmaple > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > I pushed this to kbuild-2.6.git#kconfig, but I found an issue that needs > to be fixed before we start using this feature: scripts/basic/fixdep > scans source files for occurences of CONFIG_xxx and adds dependencies on > include/config/xxx. It needs to be taught to match config_is_xxx as > well. ok I take a look as I'm some patch that use it 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/