x86: always define DECLARE_PCI_UNMAP* macros
commitc6dcf8c6246d90238100a4db78a1fde695cd3edb
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 20 Nov 2008 19:49:56 +0000 (20 20:49 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:15 +0000 (5 10:55 -0800)
tree0f7cf16430caa1bc2f929d3393bfdc6ad63dba15
parentfb03039affb5a36920abcfb5523c30ca39098498
x86: always define DECLARE_PCI_UNMAP* macros

commit b627c8b17ccacba38c975bc0f69a49fc4e5261c9 upstream.

Impact: fix boot crash on AMD IOMMU if CONFIG_GART_IOMMU is off

Currently these macros evaluate to a no-op except the kernel is compiled
with GART or Calgary support. But we also need these macros when we have
SWIOTLB, VT-d or AMD IOMMU in the kernel. Since we always compile at
least with SWIOTLB we can define these macros always.

This patch is also for stable backport for the same reason the SWIOTLB
default selection patch is.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-x86/pci_64.h