AMD IOMMU: prealloc_protection_domains should be static
authorJaswinder Singh Rajput <jaswinder@infradead.org>
Mon, 29 Dec 2008 16:15:22 +0000 (21:45 +0530)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 3 Jan 2009 15:41:18 +0000 (16:41 +0100)
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: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c

index 0c504b207bf97a2d31f4327fe64099619b0bd5f7..881c68ffdf2ea729d98a568dc3e243380febada3 100644 (file)
@@ -1622,7 +1622,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;