From: Jaswinder Singh Rajput Date: Mon, 29 Dec 2008 16:15:22 +0000 (+0530) Subject: x86: amd_iommu.c: prealloc_protection_domains should be static X-Git-Tag: v2.6.29-rc1~536^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=557f687c87ddb8adb094b2dad4e1c83c7717982d;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: H. Peter Anvin --- diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 2e2da717b35..658e29e0f49 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) * we don't need to preallocate the protection domains anymore. * For now we have to. */ -void prealloc_protection_domains(void) +static void prealloc_protection_domains(void) { struct pci_dev *dev = NULL; struct dma_ops_domain *dma_dom;