Bug#486798: restore export of handle_mm_fault for Mac on Linux kernel modules
Package: linux-2.6
Severity: wishlist
Tags: patch
Hi
With kernel release 2.6.23 the export of handle_mm_fault was removed.
The kernel modules for the Mac on Linux emulator rely on this symbol.
Because the mol-source package containing these modules no longer builds
RC bug #445359 was filed. The bug log is a bit confusing because it
mixes several issues, but the baseline is, that building mol modules
needs handle_mm_fault.
Therefore please add the attached patch to the powerpc Debian kernel
packages. This reenables the export of handle_mm_fault for powerpc only.
I know that SuSE also applies a similar patch to their powerpc kernels
to be able to build the mol modules. As the patch is fairly short and
the symbol was exported for a long time before I don't see any bad side
effects of applying this patch.
I the long run an inclusion of the mol kernel moduls into the linux
upstream source would be the preferred solution. There is currently some
upstream work in this direction. But it won't be ready for lenny.
The corresponding upstream (mol) bug report is:
http://sourceforge.net/tracker/index.php?func=detail&aid=1763167&group_id=179078&atid=887701
Please CC pkg-mol-devel@lists.alioth.debian.org on any replies.
Thanks for considering this patch.
Gaudenz
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.26-rc5
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c
index c6b1aa3..455fb38 100644
--- a/arch/powerpc/kernel/ppc_ksyms.c
+++ b/arch/powerpc/kernel/ppc_ksyms.c
@@ -189,6 +189,7 @@ EXPORT_SYMBOL(set_context);
extern long mol_trampoline;
EXPORT_SYMBOL(mol_trampoline); /* For MOL */
EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
+EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
#ifdef CONFIG_SMP
extern int mmu_hash_lock;
EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
Reply to: