Public bug reported:

https://lkml.org/lkml/2012/1/12/148
        
Subject [PATCH] fix amd_get_mmconfig_range link error
From    Bjorn Helgaas <>
Date    Thu, 12 Jan 2012 08:01:34 -0700
        

This fixes a link error in current upstream when:

    CONFIG_PCI=y
    # CONFIG_AMD_NB not set

 LD      .tmp_vmlinux1
 arch/x86/pci/built-in.o: In function `early_fill_mp_bus_info':
 /opt/src/linux/arch/x86/pci/amd_bus.c:189: undefined reference to
 `amd_get_mmconfig_range'
 make: *** [.tmp_vmlinux1] Error 1

---
Bjorn Helgaas (1):
      x86/PCI: build amd_bus.o only when CONFIG_AMD_NB=y


 arch/x86/pci/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
-- 
Bjorn


https://lkml.org/lkml/2012/1/12/149

Subject [PATCH] x86/PCI: build amd_bus.o only when CONFIG_AMD_NB=y
From    Bjorn Helgaas <>
Date    Thu, 12 Jan 2012 08:01:40 -0700
        

We only need amd_bus.o for AMD systems with PCI.  arch/x86/pci/Makefile
already depends on CONFIG_PCI=y, so this patch just adds the dependency
on CONFIG_AMD_NB.

Cc: Yinghai Lu <ying...@kernel.org>
Cc: sta...@kernel.org   # 2.6.34+ (needs adjustment for k8 -> amd rename)
Signed-off-by: Bjorn Helgaas <bhelg...@google.com>
---
 arch/x86/pci/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/pci/Makefile b/arch/x86/pci/Makefile
index 6b8759f..d24d3da 100644
--- a/arch/x86/pci/Makefile
+++ b/arch/x86/pci/Makefile
@@ -18,8 +18,9 @@ obj-$(CONFIG_X86_NUMAQ)               += numaq_32.o
 obj-$(CONFIG_X86_MRST)         += mrst.o
 
 obj-y                          += common.o early.o
-obj-y                          += amd_bus.o bus_numa.o
+obj-y                          += bus_numa.o
 
+obj-$(CONFIG_AMD_NB)           += amd_bus.o
 obj-$(CONFIG_PCI_CNB20LE_QUIRK)        += broadcom_bus.o
 
 ifeq ($(CONFIG_PCI_DEBUG),y)


Bug reproduced 2012/02/15 with linux-source-3.0.0.16

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/932845

Title:
  x86/PCI: build amd_bus.o only when CONFIG_AMD_NB=y

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/932845/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to