[PATCH] powerpc: export copy_page() on 32bit

Joseph Fannin jfannin at gmail.com
Wed Jan 2 02:36:07 EST 2008


Export copy_page() on 32bit powerpc; unionfs needs it.

Unionfs already builds as a module on 64bit powerpc, so the export is
placed within an existing CONFIG_PPC32 #ifdef.

Signed-off-by: Joseph Fannin <jfannin at gmail.com>
---

I ran into this in the -mm tree; it's not new to 2.6.24-rc6-mm1.

I haven't been able to find any evidence that copy_page() is exported
with 64bit; maybe this is because copy_page there is a wrapper around
the exported copy_4K_page() and gets optimized away, or maybe I just
don't know where to look.

If copy_page() is exported for 64bit somewhere, this might not be the
right thing?

diff -aurN -x .git linux-mm.orig/arch/powerpc/kernel/ppc_ksyms.c linux-mm.patched/arch/powerpc/kernel/ppc_ksyms.c
--- linux-mm.orig/arch/powerpc/kernel/ppc_ksyms.c	2008-01-01 04:03:33.000000000 -0500
+++ linux-mm.patched/arch/powerpc/kernel/ppc_ksyms.c	2008-01-01 04:15:33.000000000 -0500
@@ -59,6 +59,7 @@
 extern int sys_sigreturn(struct pt_regs *regs);
 
 EXPORT_SYMBOL(clear_pages);
+EXPORT_SYMBOL(copy_page);
 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
 EXPORT_SYMBOL(DMA_MODE_READ);
 EXPORT_SYMBOL(DMA_MODE_WRITE);


--
Joseph Fannin
jfannin at gmail.com




More information about the Linuxppc-dev mailing list