diff options
author | Andi Kleen <ak@suse.de> | 2006-04-07 19:49:33 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-09 20:53:51 +0200 |
commit | fa47dd0ba303599f8adf8d8336ed2fb74efc47c5 (patch) | |
tree | 5aad31f503964dafb047f15bf327e99e5ddbd5c7 /arch/x86_64 | |
parent | [PATCH] i386/x86-64: Check that MCFG points to an e820 reserved area (diff) | |
download | linux-fa47dd0ba303599f8adf8d8336ed2fb74efc47c5.tar.xz linux-fa47dd0ba303599f8adf8d8336ed2fb74efc47c5.zip |
[PATCH] x86_64: Fix compilation with CONFIG_PCI=n / allnoconfig
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/pci-dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/pci-dma.c b/arch/x86_64/kernel/pci-dma.c index 03c9eeedb0f3..af035ede70cd 100644 --- a/arch/x86_64/kernel/pci-dma.c +++ b/arch/x86_64/kernel/pci-dma.c @@ -48,9 +48,11 @@ dma_alloc_pages(struct device *dev, gfp_t gfp, unsigned order) { struct page *page; int node; +#ifdef CONFIG_PCI if (dev->bus == &pci_bus_type) node = pcibus_to_node(to_pci_dev(dev)->bus); else +#endif node = numa_node_id(); page = alloc_pages_node(node, gfp, order); return page ? page_address(page) : NULL; |