]> git.baikalelectronics.ru Git - kernel.git/commit
x86: always define DECLARE_PCI_UNMAP* macros
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 20 Nov 2008 19:49:56 +0000 (20:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 27 Nov 2008 11:44:08 +0000 (12:44 +0100)
commit4b1e97f63ff4a2b66cec4de3028d8fce8fb69e17
tree6cf2dff7025e213168d19c9a7f888e6c32e89db0
parent7bcbc5af5fda4975cc4cdf8250942494ec9f46f7
x86: always define DECLARE_PCI_UNMAP* macros

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>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/pci_64.h