x86: amd_iommu.c: prealloc_protection_domains should be static
authorJaswinder Singh Rajput <jaswinder@infradead.org>
Mon, 29 Dec 2008 16:15:22 +0000 (21:45 +0530)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 30 Dec 2008 06:08:17 +0000 (22:08 -0800)
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>
arch/x86/kernel/amd_iommu.c

index 2e2da717b350bbd30cba12cfee11d06b12f6e1b8..658e29e0f49bb6ce807ad14842aaeeaf82005569 100644 (file)
@@ -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;