Skip to contentSkip to conversation

microblaze: export assembly functions used by modules

PATCH Applied Steven J. Magnani 2 participants 2 messages Apr 27, 2010 – Apr 30, 2010 Microblaze architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze: export assembly functions used by modules

Modules that use copy_{to,from}_user(), memcpy(), and memset() fail to build in certain circumstances.

---

arch/microblaze/kernel/microblaze_ksyms.c +10 -0
diff -uprN a/arch/microblaze/kernel/microblaze_ksyms.c b/arch/microblaze/kernel/microblaze_ksyms.c
@@ -52,3 +52,13 @@ EXPORT_SYMBOL_GPL(_ebss);
 extern void _mcount(void);
 EXPORT_SYMBOL(_mcount);
 #endif
+
+/*
+ * Assembly functions that may be used (directly or indirectly) by modules
+ */
+EXPORT_SYMBOL(__copy_tofrom_user);
+
+#ifdef CONFIG_OPT_LIB_ASM
+EXPORT_SYMBOL(memcpy);
+EXPORT_SYMBOL(memmove);
+#endif
maintainer Applied
#1 lore raw
Quoted 13 lines · Steven J. Magnani

Modules that use copy_{to,from}_user(), memcpy(), and memset() fail to build in certain circumstances.

---
diff -uprN a/arch/microblaze/kernel/microblaze_ksyms.c b/arch/microblaze/kernel/microblaze_ksyms.c

arch/microblaze/kernel/microblaze_ksyms.c +0 -0
@@ -52,3 +52,13 @@ EXPORT_SYMBOL_GPL(_ebss);
 extern void _mcount(void);
 EXPORT_SYMBOL(_mcount);
 #endif

arch/microblaze/kernel/microblaze_ksyms.c EXPORT_SYMBOL_GPL(_ebss); · line 64

Quoted 10 lines
arch/microblaze/kernel/microblaze_ksyms.c +10 -0
+
+/*
+ * Assembly functions that may be used (directly or indirectly) by modules
+ */
+EXPORT_SYMBOL(__copy_tofrom_user);
+
+#ifdef CONFIG_OPT_LIB_ASM
+EXPORT_SYMBOL(memcpy);
+EXPORT_SYMBOL(memmove);
+#endif

applied.

Thanks,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian