All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] restore export of handle_mm_fault for Mac on Linux
@ 2008-06-18 10:14 Gaudenz Steinlin
  2008-06-18 11:49 ` Christoph Hellwig
  2008-06-18 17:18 ` Alan Cox
  0 siblings, 2 replies; 10+ messages in thread
From: Gaudenz Steinlin @ 2008-06-18 10:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: 486798, josejx

[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]

Hi

The kernel modules for Mac on Linux (MOL) need handle_mm_fault. 
MOL is a GPL licensed virtual machine to run MacOS(X) on PPC Linux.

The export for handle_mm_fault was removed with commit
41f9dc5c871600f53c8912b2975971d2a11c1c25. 

Previously the export has been present since handle_mm_fault was
converted from an inline function to a non-inline one. See the thread
starting at http://marc.info/?l=linux-kernel&m=112327941709177&w=2 for
the initial discussion.

With commit 67207b9664a8d603138ef1556141e6d0a102bea7 the export was
moved from arch/ppc/kernel/ppc_ksyms.c to mm/memory.c. In this patch the
explanatory comment /* For MOL */ got lost. Thus to export was not moved
back to it's original place when it was no longer needed for spufs.

The attached patch restores the symbol export (GPL only) in it's
original place. Please consider applying it because this fixes a
regression for MOL.

Thanks

Gaudenz

P.S.: Please CC me and the corresponding Debian bug report on any
replies.

-- 
Ever tried. Ever failed. No matter.
Try again. Fail again. Fail better.
~ Samuel Beckett ~

[-- Attachment #2: mol-mm.patch --]
[-- Type: text/x-diff, Size: 494 bytes --]

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 */

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-06-19 11:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-18 10:14 [PATCH] restore export of handle_mm_fault for Mac on Linux Gaudenz Steinlin
2008-06-18 11:49 ` Christoph Hellwig
2008-06-18 12:45   ` Paul Mackerras
2008-06-18 12:51     ` Christoph Hellwig
2008-06-19  9:59       ` Gaudenz Steinlin
2008-06-18 17:18 ` Alan Cox
2008-06-19  9:58   ` Gaudenz Steinlin
2008-06-19 10:38     ` Christoph Hellwig
2008-06-19 10:46       ` Pekka Enberg
2008-06-19 11:01         ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.