[PATCH] Export handle_mm_fault to modules.

From: Stelian Pop
Date: Fri Aug 05 2005 - 17:02:15 EST


handle_mm_fault changed from an inline function to a non-inline one
(__handle_mm_fault), which is not available to external kernel modules.
The patch below fixes this.

Stelian.

Export __handle_mm_fault to modules (called by the inlined handle_mm_fault function).

Signed-off-by: Stelian Pop <stelian@xxxxxxxxxx>

Index: linux-2.6.git/mm/memory.c
===================================================================
--- linux-2.6.git.orig/mm/memory.c 2005-08-05 22:26:20.000000000 +0200
+++ linux-2.6.git/mm/memory.c 2005-08-05 23:46:49.000000000 +0200
@@ -2061,6 +2061,7 @@
spin_unlock(&mm->page_table_lock);
return VM_FAULT_OOM;
}
+EXPORT_SYMBOL(__handle_mm_fault);

#ifndef __PAGETABLE_PUD_FOLDED
/*

--
Stelian Pop <stelian@xxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/