Re: linux-next: Tree for Jan 9 (arch/x86/pci/amd_bus.c)

From: Bjorn Helgaas
Date: Mon Jan 09 2012 - 17:41:04 EST


On Mon, Jan 9, 2012 at 2:05 PM, Randy Dunlap <rdunlap@xxxxxxxxxxxx> wrote:
> on several i386 builds:
>
> amd_bus.c:(.init.text+0x134b): undefined reference to `amd_get_mmconfig_range'

This is my fault. I moved some code from amd_bus.c to amd_nb.c, and builds with

CONFIG_PCI=y
# CONFIG_AMD_NB not set

now fail. The attached patch should fix it. I'll repost the series
("x86/PCI: amd: factor out MMCONFIG discovery") with the fix.

Yinghai, it looks to me like there's no reason to build amd_bus.o
unless we have CONFIG_AMD_NB=y, but speak up if I'm wrong :)

Bjorn

Attachment: patch.amd-build-fix
Description: Binary data