aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinder@infradead.org>2008-12-29 11:15:22 -0500
committerH. Peter Anvin <hpa@zytor.com>2008-12-30 01:08:17 -0500
commit557f687c87ddb8adb094b2dad4e1c83c7717982d (patch)
treeb7600d8a2ce2f9a0cbd144d9587a77fe8711c715
parent412a1be265b894a45cebbfc2b57eb7a593bf34b2 (diff)
x86: amd_iommu.c: prealloc_protection_domains should be static
Impact: cleanup, reduce kernel size a bit, avoid sparse warning Fixes sparse warning: arch/x86/kernel/amd_iommu.c:1299:6: warning: symbol 'prealloc_protection_domains' was not declared. Should it be static? Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--arch/x86/kernel/amd_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 2e2da717b350..658e29e0f49b 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1296,7 +1296,7 @@ static int amd_iommu_dma_supported(struct device *dev, u64 mask)
1296 * we don't need to preallocate the protection domains anymore. 1296 * we don't need to preallocate the protection domains anymore.
1297 * For now we have to. 1297 * For now we have to.
1298 */ 1298 */
1299void prealloc_protection_domains(void) 1299static void prealloc_protection_domains(void)
1300{ 1300{
1301 struct pci_dev *dev = NULL; 1301 struct pci_dev *dev = NULL;
1302 struct dma_ops_domain *dma_dom; 1302 struct dma_ops_domain *dma_dom;