summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/lib/strncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/lib/strncmp.c')
-rw-r--r--arch/blackfin/lib/strncmp.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/blackfin/lib/strncmp.c b/arch/blackfin/lib/strncmp.c
new file mode 100644
index 0000000..2aaae78
--- /dev/null
+++ b/arch/blackfin/lib/strncmp.c
@@ -0,0 +1,19 @@
+/*
+ * Provide symbol in case str func is not inlined.
+ *
+ * Copyright (c) 2006-2007 Analog Devices Inc.
+ *
+ * Licensed under the GPL-2 or later.
+ */
+
+#define strncmp __inline_strncmp
+#include <asm/string.h>
+#undef strncmp
+
+#include <linux/module.h>
+
+int strncmp(const char *cs, const char *ct, size_t count)
+{
+ return __inline_strncmp(cs, ct, count);
+}
+EXPORT_SYMBOL(strncmp);
OpenPOWER on IntegriCloud