Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945957AbbEVXzD (ORCPT ); Fri, 22 May 2015 19:55:03 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35569 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757606AbbEVXzA (ORCPT ); Fri, 22 May 2015 19:55:00 -0400 X-Originating-IP: 173.246.103.110 Date: Fri, 22 May 2015 16:54:45 -0700 From: Josh Triplett To: "Luis R. Rodriguez" Cc: Herbert Xu , Dmitry Torokhov , Takashi Iwai , Paul Bolle , Geert Uytterhoeven , Borislav Petkov , Greg KH , "David S. Miller" , clemens@ladisch.de, JBottomley@odin.com, David Airlie , Mauro Carvalho Chehab , Marcel Holtmann , "Gustavo F. Padovan" , Johan Hedberg , Mikael Starvik , Jesper Nilsson , Imre Kaloz , khalasa@piap.pl, Ohad Ben-Cohen , Arnd Bergmann , 3chas3@gmail.com, Jiri Slaby , Bryan Wu , Richard Purdie , Jacek Anaszewski , "linux-kernel@vger.kernel.org" Subject: Re: [RFC v1] tree-wide: remove "select FW_LOADER" uses Message-ID: <20150522235445.GA21938@jtriplet-mobl1> References: <20150522175711.GE40101@dtor-ws> <20150522181924.GN23057@wotan.suse.de> <20150522185207.GG40101@dtor-ws> <20150522192814.GO23057@wotan.suse.de> <20150522214357.GA24129@cloud> <20150522222200.GP23057@wotan.suse.de> <20150522223349.GA11950@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1600 Lines: 34 On Fri, May 22, 2015 at 04:02:33PM -0700, Luis R. Rodriguez wrote: > On Fri, May 22, 2015 at 3:33 PM, Herbert Xu wrote: > > On Sat, May 23, 2015 at 12:22:00AM +0200, Luis R. Rodriguez wrote: > >> Kind of, the issue actually was a new component which depends on FW_LOADER > >> and has crypto dependencies. Since the qat crypto driver selects FW_LOADER > >> but also has a set of crypto dependencies that creates a recursive dependency > >> loop. > > > > Actually, how about making FW_SIG select FW_LOADER instead of > > depending on it? I think this should break the cycle. > > Indeed, it does. Kind of odd, but works - and well if others run into > the recursive issue then we have two diverging solutions now: > > a) Either swap all "select FOO" to "depends on FOO" or, > b) Change the offending "depends on FOO" to "select FOO" > > So sticking to one seems to make Kconfig happy for recursive > dependency solving for now... For simplicity and avoidance of massive tree-wide patches, (b) seems preferable in this case. Long-term, I think ideally we should have *every* visible Kconfig option always pulled in by "depends on" rather than "select", with visibility and recursion handled by smarter tools. That said, meddle not in the internals of Kconfig, for it has many unshorn yaks (and yaccs). - Josh Triplett -- 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/