Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760251AbZDGVwY (ORCPT ); Tue, 7 Apr 2009 17:52:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754947AbZDGVwO (ORCPT ); Tue, 7 Apr 2009 17:52:14 -0400 Received: from outbound-mail-147.bluehost.com ([67.222.38.37]:37799 "HELO outbound-mail-147.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753689AbZDGVwN (ORCPT ); Tue, 7 Apr 2009 17:52:13 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=virtuousgeek.org; h=Received:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=lMhb6fj1Yuut81843hOAZJf8YqW1H+GoLy8h6jde3SSUpTr7452cDRUJwxDfEO3+gZmX6oAdGzYe4N4kTF7KGtoEm0wNL7WvWrFeSz53xJfD47tUmlsm0iWG1iuEu45V; Date: Tue, 7 Apr 2009 14:52:08 -0700 From: Jesse Barnes To: Andrew Patterson Cc: Alexander Beregalov , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH next] pci: fix build error with !PCIE_ECRC Message-ID: <20090407145208.56c25214@hobbes> In-Reply-To: <1239125629.19984.196.camel@grinch> References: <20090407123707.GA18687@orion> <1239125629.19984.196.camel@grinch> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 75.111.28.251 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2471 Lines: 65 On Tue, 07 Apr 2009 17:33:49 +0000 Andrew Patterson wrote: > On Tue, 2009-04-07 at 16:37 +0400, Alexander Beregalov wrote: > > Fix this build error: > > drivers/built-in.o: In function `pci_init_capabilities': > > drivers/pci/probe.c:989: undefined reference to > > `pcie_set_ecrc_checking' drivers/built-in.o: In function > > `pci_setup': drivers/pci/pci.c:2547: undefined reference to > > `pcie_ecrc_get_policy' > > > > Signed-off-by: Alexander Beregalov > > --- > > > > drivers/pci/pci.c | 2 ++ > > drivers/pci/pcie/Kconfig | 2 +- > > drivers/pci/probe.c | 2 ++ > > 3 files changed, 5 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > > index f61b2cf..f1c393e 100644 > > --- a/drivers/pci/pci.c > > +++ b/drivers/pci/pci.c > > @@ -2543,8 +2543,10 @@ static int __init pci_setup(char *str) > > } else if (!strncmp(str, > > "resource_alignment=", 19)) { pci_set_resource_alignment_param(str > > + 19, strlen(str + 19)); > > +#ifdef CONFIG_PCIE_ECRC > > } else if (!strncmp(str, "ecrc=", 5)) { > > pcie_ecrc_get_policy(str + 5); > > +#endif > > } else { > > printk(KERN_ERR "PCI: Unknown > > option `%s'\n", str); > > diff --git a/drivers/pci/pcie/Kconfig b/drivers/pci/pcie/Kconfig > > index a79e52b..9d0e727 100644 > > --- a/drivers/pci/pcie/Kconfig > > +++ b/drivers/pci/pcie/Kconfig > > @@ -52,7 +52,7 @@ config PCIEASPM_DEBUG > > # > > config PCIE_ECRC > > bool "PCI Express ECRC support" > > - depends on PCI > > + depends on PCI && PCIEPORTBUS > > We really only need this. There are empty functions in > include/linux/pci.h to handle the case where PCIE_ECRC is not defined. > The problem is that the code in drivers/pci/pcie is only compiled if > PCIEPORTBUS is defined. This feature does not depend on any > PCIEPORTBUS code. So either ecrc.c needs to be moved to drivers/pci > or we need to not assume that drivers/pci/pcie is only for the > portbus driver. > Btw I dropped this patch back out in light of Kenji-san's comments, so I expect any subsequent version to include a fix for the build issue. Thanks, -- Jesse Barnes, Intel Open Source Technology Center -- 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/