Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755350Ab1EQOpN (ORCPT ); Tue, 17 May 2011 10:45:13 -0400 Received: from cantor.suse.de ([195.135.220.2]:42740 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754793Ab1EQOpL (ORCPT ); Tue, 17 May 2011 10:45:11 -0400 Date: Tue, 17 May 2011 16:45:10 +0200 From: Michal Marek To: Jean-Christophe PLAGNIOL-VILLARD Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH v2] kconfig: autogenerated config_is_xxx macro Message-ID: <20110517144510.GQ13293@sepie.suse.cz> References: <1304658229-30820-1-git-send-email-plagnioj@jcrosoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1304658229-30820-1-git-send-email-plagnioj@jcrosoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 30 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. Michal -- 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/