From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-gy0-f179.google.com (mail-gy0-f179.google.com [209.85.160.179]) by ozlabs.org (Postfix) with ESMTP id 907F1B6F19 for ; Sat, 17 Jul 2010 06:17:29 +1000 (EST) Received: by gyd10 with SMTP id 10so1601565gyd.38 for ; Fri, 16 Jul 2010 13:17:27 -0700 (PDT) MIME-Version: 1.0 Sender: glikely@secretlab.ca In-Reply-To: <1279310976.18579.8.camel@e102109-lin.cambridge.arm.com> References: <20100713230352.6781.18644.stgit@angua> <1279296221.17878.66.camel@e102109-lin.cambridge.arm.com> <20100716183028.GB26854@n2100.arm.linux.org.uk> <1279310976.18579.8.camel@e102109-lin.cambridge.arm.com> From: Grant Likely Date: Fri, 16 Jul 2010 14:17:05 -0600 Message-ID: Subject: Re: [RFC PATCH] Kconfig: Enable Kconfig fragments to be used for defconfig To: Catalin Marinas Content-Type: text/plain; charset=ISO-8859-1 Cc: Stephen Rothwell , Daniel Walker , Russell King - ARM Linux , linux-kbuild@vger.kernel.org, Tony Lindgren , Nicolas Pitre , lkml , linuxppc-dev@lists.ozlabs.org, =?ISO-8859-1?Q?Uwe_Kleine=2DK=F6nig?= , Linus Torvalds , linux-arm-kernel@lists.infradead.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jul 16, 2010 at 2:09 PM, Catalin Marinas wrote: > On Fri, 2010-07-16 at 19:46 +0100, Linus Torvalds wrote: >> On Fri, Jul 16, 2010 at 11:40 AM, Nicolas Pitre wrote= : >> > >> > DOH. >> >> Well, it's possible that the correct approach is a mixture. >> >> Automatically do the trivial cases (recursive selects, dependencies >> that are simple or of the form "x && y" etc), and warn about the cases >> that aren't trivial (where "not trivial" may not necessarily be about >> fundamentally ambiguous ones, but just "complex enough that I won't >> even try"). > > There is still a risk with this approach when the Kconfig isn't entirely > correct. For example, on ARM we have (I pushed a patch already): > > config CPU_32v6K > =A0 =A0 =A0 =A0depends on CPU_V6 > > config CPU_V7 > =A0 =A0 =A0 =A0select CPU_32v6K > > In this simple approach, we end up selecting CPU_V6 when we only need > CPU_V7. There other places like this in the kernel. > > Of course, kbuild could still warn but if people rely on this feature to > select options automatically I suspect they would ignore the warnings. In my first patch, I made Kconfig problems errors instead of warnings. That would prevent people from ignoring them. g.