From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754615Ab1G0PLS (ORCPT ); Wed, 27 Jul 2011 11:11:18 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:50456 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491Ab1G0PLQ (ORCPT ); Wed, 27 Jul 2011 11:11:16 -0400 MIME-Version: 1.0 In-Reply-To: <4E3014E2.40501@suse.cz> References: <4E1D9C25.8080300@suse.cz> <1311634718-32588-1-git-send-email-mmarek@suse.cz> <4E2EBF63.8050208@suse.cz> <20110726080443.62196869.rdunlap@xenotime.net> <4E2F0735.1070403@suse.cz> <20110726112824.b357c756.rdunlap@xenotime.net> <20110726213536.1f56f0e3.rdunlap@xenotime.net> <4E2FCE2A.3000909@suse.cz> <4E3014E2.40501@suse.cz> Date: Wed, 27 Jul 2011 11:11:16 -0400 Message-ID: Subject: Re: [RFC][PATCH 1/2] kconfig: Introduce KCONFIG(), KCONFIG_BUILTIN() and KCONFIG_MODULE() From: Arnaud Lacombe To: Michal Marek Cc: Randy Dunlap , =?ISO-8859-1?Q?Am=E9rico_Wang?= , linux-kbuild@vger.kernel.org, sam@ravnborg.org, linux-kernel@vger.kernel.org, plagnioj@jcrosoft.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Jul 27, 2011 at 9:38 AM, Michal Marek wrote: >> [...] >> I'm good with the naming, but how would you define those ? I may have >> trouble to discern between IS_ENABLED() and IS_ENABLED_BUILTIN(). > > IS_ENABLED() would mean not disabled, i.e. either 'y' or 'm'. > IS_ENABLED_BUILTIN() would mean 'y' and only 'y' and IS_ENABLED_MODULE() > would mean 'm'. For boolean options, IS_ENABLED() would be equivalent to > IS_ENABLED_BUILTIN() and IS_ENABLED_MODULE() would be always false. > how would IS_ENABLED() behave on CONFIG_FOO, with FOO being S_STRING or, say, S_HEX ? - Arnaud