2005-05-18 04:28:24

by Jeff Dike

[permalink] [raw]
Subject: [PATCH 6/9] UML - Export clear_user_*

>From Oleg Drokin:
This patch is needed to support kernel modules that want to use clear_user()
(that is exported symbol on all other architectures).

Signed-off-by: Jeff Dike <[email protected]>

Index: linux-2.6.12-rc/arch/um/kernel/ksyms.c
===================================================================
--- linux-2.6.12-rc.orig/arch/um/kernel/ksyms.c 2005-05-02 19:42:47.000000000 -0400
+++ linux-2.6.12-rc/arch/um/kernel/ksyms.c 2005-05-06 21:47:49.000000000 -0400
@@ -57,6 +57,7 @@
EXPORT_SYMBOL(strncpy_from_user_skas);
EXPORT_SYMBOL(copy_to_user_skas);
EXPORT_SYMBOL(copy_from_user_skas);
+EXPORT_SYMBOL(clear_user_skas);
#endif
EXPORT_SYMBOL(uml_strdup);

Index: linux-2.6.12-rc/arch/um/kernel/tt/ksyms.c
===================================================================
--- linux-2.6.12-rc.orig/arch/um/kernel/tt/ksyms.c 2005-03-02 02:38:26.000000000 -0500
+++ linux-2.6.12-rc/arch/um/kernel/tt/ksyms.c 2005-05-06 21:47:49.000000000 -0400
@@ -12,6 +12,7 @@
EXPORT_SYMBOL(__do_strncpy_from_user);
EXPORT_SYMBOL(__do_strnlen_user);
EXPORT_SYMBOL(__do_clear_user);
+EXPORT_SYMBOL(clear_user_tt);

EXPORT_SYMBOL(tracing_pid);
EXPORT_SYMBOL(honeypot);