]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/blackfin/kernel/bfin_ksyms.c
Blackfin: move string functions to normal lib/ assembly
[linux-2.6.git] / arch / blackfin / kernel / bfin_ksyms.c
index ed8392c117eaa1d32d0e0623dc12788c4702095b..2c264b51566afa2d7ca45b8ad129fcc8384e89c0 100644 (file)
@@ -32,6 +32,18 @@ EXPORT_SYMBOL(memcmp);
 EXPORT_SYMBOL(memmove);
 EXPORT_SYMBOL(memchr);
 
+/*
+ * Because string functions are both inline and exported functions and
+ * folder arch/blackfin/lib is configured as a library path in Makefile,
+ * symbols exported in folder lib  is not linked into built-in.o but
+ * inlined only. In order to export string symbols to kernel module
+ * properly, they should be exported here.
+ */
+EXPORT_SYMBOL(strcpy);
+EXPORT_SYMBOL(strncpy);
+EXPORT_SYMBOL(strcmp);
+EXPORT_SYMBOL(strncmp);
+
 /*
  * libgcc functions - functions that are used internally by the
  * compiler...  (prototypes are not correct though, but that