[PATCH 10/12] powerpc: remove unneeded exports in mem.c

Johannes Berg
2007-02-07T12:45:46Z

[-- Attachment #1: remove-unneeded-exports.patch --]
[-- Type: text/plain, Size: 969 bytes --]

arch/powerpc/mm/mem.c exports page_is_ram and phys_mem_access_prot which
both are not used anywhere that could be modular.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Paul Mackerras <paulus@samba.org>

---
I don't see any possible way these could be used by external modules either,
especially since they are not portable across arches.

--- linux-2.6-git.orig/arch/powerpc/mm/mem.c 2007-02-07 02:55:34.636884289 +0100
+++ linux-2.6-git/arch/powerpc/mm/mem.c 2007-02-07 02:55:35.252884289 +0100
@@ -83,7 +83,6 @@ int page_is_ram(unsigned long pfn)
return 0;
#endif
}
-EXPORT_SYMBOL(page_is_ram);

pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
unsigned long size, pgprot_t vma_prot)
@@ -96,7 +95,6 @@ pgprot_t phys_mem_access_prot(struct fil
| _PAGE_GUARDED | _PAGE_NO_CACHE);
return vma_prot;
}
-EXPORT_SYMBOL(phys_mem_access_prot);

#ifdef CONFIG_MEMORY_HOTPLUG

--