Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754477Ab1ENKOB (ORCPT ); Sat, 14 May 2011 06:14:01 -0400 Received: from 64.mail-out.ovh.net ([91.121.185.65]:33358 "HELO 64.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753462Ab1ENKN5 (ORCPT ); Sat, 14 May 2011 06:13:57 -0400 Date: Sat, 14 May 2011 12:02:51 +0200 From: Jean-Christophe PLAGNIOL-VILLARD To: Ingo Molnar Cc: Alexey Dobriyan , Michal Marek , Arnaud Lacombe , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, x86@kernel.org, Ingo Molnar , Andi Kleen Subject: Re: [PATCH v2] kconfig: autogenerated config_is_xxx macro Message-ID: <20110514100251.GB14136@game.jcrosoft.org> References: <1304658229-30820-1-git-send-email-plagnioj@jcrosoft.com> <20110507015041.GA21017@game.jcrosoft.org> <4DC7AB57.9050002@suse.cz> <20110513080909.GO18952@game.jcrosoft.org> <20110513083013.GC13647@elte.hu> <20110513083652.GP18952@game.jcrosoft.org> <20110513100152.GN13647@elte.hu> <20110513122112.GA469@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110513122112.GA469@elte.hu> 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: 6187945888279079920 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: 1882 Lines: 53 On 14:21 Fri 13 May , Ingo Molnar wrote: > > * Alexey Dobriyan wrote: > > > On Fri, May 13, 2011 at 1:01 PM, Ingo Molnar wrote: > > > > > > * Jean-Christophe PLAGNIOL-VILLARD wrote: > > > > > >> On 10:30 Fri 13 May ? ? , Ingo Molnar wrote: > > >> > > > >> > * Jean-Christophe PLAGNIOL-VILLARD wrote: > > >> > > > >> > > -#ifdef CONFIG_PCI_BIOS > > >> > > - if (!rt->signature) { > > >> > > + if (config_is_pci_bios() && !rt->signature) { > > >> > > > >> > Makes sense - but please name it in a more obvious way, such as: > > >> > > > >> > ? ? pci_bios_enabled() > > >> the idea to generate the macro via Kconfig > > > > > > Okay, and there we are stuck with whatever the Kconfig name is. (we could > > > rename that but not needed really) > > > > > > Why not the canonical config_pci_bios() variant? It's the shortest one to > > > write. The '_is' looks pretty superfluous to me. > > > > > > Hm, i guess it could be mixed up with a function that configures the pci_bios. > > > > > > I guess since i don't have any better idea config_is_pci_bios() sounds like a > > > good choice after all. > > > > But we don't name config options like CONFIG_IS_PCI_BIOS, do we? > > The problem is that 'config' can be misunderstood as a verb - it's often used > for function names to say 'to configure'. > > By naming it 'config_is_()' it unambiguously becomes a noun. with Andi and Ingo ack can I assume this patch go the -next and the .40 if yes I rebase some of my patch against it for at91 I'll regulary send patch to switch to 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/