aboutsummaryrefslogtreecommitdiff
path: root/arch/blackfin/lib/strncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/lib/strncpy.c')
-rw-r--r--arch/blackfin/lib/strncpy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/blackfin/lib/strncpy.c b/arch/blackfin/lib/strncpy.c
new file mode 100644
index 00000000000..77a9b2e9509
--- /dev/null
+++ b/arch/blackfin/lib/strncpy.c
@@ -0,0 +1,11 @@
+#include <linux/types.h>
+
+#define strncpy __inline_strncpy
+#include <asm/string.h>
+#undef strncpy
+
+char *strncpy(char *dest, const char *src, size_t n)
+{
+ return __inline_strncpy(dest, src, n);
+}
+