Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965812AbXILKMS (ORCPT ); Wed, 12 Sep 2007 06:12:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933008AbXILKMG (ORCPT ); Wed, 12 Sep 2007 06:12:06 -0400 Received: from static-ip-62-75-166-246.inaddr.intergenia.de ([62.75.166.246]:59180 "EHLO vs166246.vserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932432AbXILKME (ORCPT ); Wed, 12 Sep 2007 06:12:04 -0400 From: Michael Buesch To: Paul Mundt Subject: Re: [PATCH -mm] ssb: Make pcmciahost depend on PCMCIA=y Date: Wed, 12 Sep 2007 12:09:09 +0200 User-Agent: KMail/1.9.6 Cc: Andrew Morton , linux-kernel@vger.kernel.org References: <20070912021100.GB26827@linux-sh.org> In-Reply-To: <20070912021100.GB26827@linux-sh.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709121209.10068.mb@bu3sch.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1623 Lines: 47 On Wednesday 12 September 2007 04:11:00 Paul Mundt wrote: > SSB uses a bool (SSB_PCMCIAHOST_POSSIBLE) to determine whether to > build in PCMCIA support or not, as the PCMCIA host code itself is > also only a bool, make SSB_PCMCIAHOST_POSSIBLE depend on PCMCIA=y. > > Without this, SSB_PCMCIAHOST_POSSIBLE evaluates to y when PCMCIA > is built as a module, which results in link errors due to the > pcmcia_access_configuration_register() accesses, where the symbol > is only defined in a module. > > Signed-off-by: Paul Mundt > > -- > > drivers/ssb/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-2.6.23-rc4-mm1.orig/drivers/ssb/Kconfig 2007-09-11 15:15:52.000000000 +0900 > +++ linux-2.6.23-rc4-mm1/drivers/ssb/Kconfig 2007-09-12 10:51:53.000000000 +0900 > @@ -37,7 +37,7 @@ > > config SSB_PCMCIAHOST_POSSIBLE > bool > - depends on SSB && PCMCIA && EXPERIMENTAL > + depends on SSB && PCMCIA=y && EXPERIMENTAL > default y > > config SSB_PCMCIAHOST > > There we go. The usual SELECT dependency hell again... Would changing SSB_PCMCIAHOST_POSSIBLE to tristate also fix it? What would be the sideeffects? I think this PCMCIA=y is not good, because it's perfectly legal to build PCMCIA as module, while SSB and everything that depends on SSB is also a module. Would tristate fix that? -- Greetings Michael. - 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/