diff options
-rw-r--r-- | arch/frv/include/asm/string.h | 1 | ||||
-rw-r--r-- | arch/s390/include/asm/string.h | 1 | ||||
-rw-r--r-- | include/linux/string.h | 3 | ||||
-rw-r--r-- | lib/string.c | 8 |
4 files changed, 0 insertions, 13 deletions
diff --git a/arch/frv/include/asm/string.h b/arch/frv/include/asm/string.h index 5ed310f64b7e..1f6c35990439 100644 --- a/arch/frv/include/asm/string.h +++ b/arch/frv/include/asm/string.h | |||
@@ -33,7 +33,6 @@ extern void *memcpy(void *, const void *, __kernel_size_t); | |||
33 | #define __HAVE_ARCH_STRNCAT 1 | 33 | #define __HAVE_ARCH_STRNCAT 1 |
34 | #define __HAVE_ARCH_STRCMP 1 | 34 | #define __HAVE_ARCH_STRCMP 1 |
35 | #define __HAVE_ARCH_STRNCMP 1 | 35 | #define __HAVE_ARCH_STRNCMP 1 |
36 | #define __HAVE_ARCH_STRNICMP 1 | ||
37 | #define __HAVE_ARCH_STRCHR 1 | 36 | #define __HAVE_ARCH_STRCHR 1 |
38 | #define __HAVE_ARCH_STRRCHR 1 | 37 | #define __HAVE_ARCH_STRRCHR 1 |
39 | #define __HAVE_ARCH_STRSTR 1 | 38 | #define __HAVE_ARCH_STRSTR 1 |
diff --git a/arch/s390/include/asm/string.h b/arch/s390/include/asm/string.h index 7e2dcd7c57ef..8662f5c8e17f 100644 --- a/arch/s390/include/asm/string.h +++ b/arch/s390/include/asm/string.h | |||
@@ -44,7 +44,6 @@ extern char *strstr(const char *, const char *); | |||
44 | #undef __HAVE_ARCH_STRCHR | 44 | #undef __HAVE_ARCH_STRCHR |
45 | #undef __HAVE_ARCH_STRNCHR | 45 | #undef __HAVE_ARCH_STRNCHR |
46 | #undef __HAVE_ARCH_STRNCMP | 46 | #undef __HAVE_ARCH_STRNCMP |
47 | #undef __HAVE_ARCH_STRNICMP | ||
48 | #undef __HAVE_ARCH_STRPBRK | 47 | #undef __HAVE_ARCH_STRPBRK |
49 | #undef __HAVE_ARCH_STRSEP | 48 | #undef __HAVE_ARCH_STRSEP |
50 | #undef __HAVE_ARCH_STRSPN | 49 | #undef __HAVE_ARCH_STRSPN |
diff --git a/include/linux/string.h b/include/linux/string.h index 2e22a2e58f3a..b9bc9a5d9e21 100644 --- a/include/linux/string.h +++ b/include/linux/string.h | |||
@@ -40,9 +40,6 @@ extern int strcmp(const char *,const char *); | |||
40 | #ifndef __HAVE_ARCH_STRNCMP | 40 | #ifndef __HAVE_ARCH_STRNCMP |
41 | extern int strncmp(const char *,const char *,__kernel_size_t); | 41 | extern int strncmp(const char *,const char *,__kernel_size_t); |
42 | #endif | 42 | #endif |
43 | #ifndef __HAVE_ARCH_STRNICMP | ||
44 | #define strnicmp strncasecmp | ||
45 | #endif | ||
46 | #ifndef __HAVE_ARCH_STRCASECMP | 43 | #ifndef __HAVE_ARCH_STRCASECMP |
47 | extern int strcasecmp(const char *s1, const char *s2); | 44 | extern int strcasecmp(const char *s1, const char *s2); |
48 | #endif | 45 | #endif |
diff --git a/lib/string.c b/lib/string.c index 10063300b830..3206d0178296 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -58,14 +58,6 @@ int strncasecmp(const char *s1, const char *s2, size_t len) | |||
58 | } | 58 | } |
59 | EXPORT_SYMBOL(strncasecmp); | 59 | EXPORT_SYMBOL(strncasecmp); |
60 | #endif | 60 | #endif |
61 | #ifndef __HAVE_ARCH_STRNICMP | ||
62 | #undef strnicmp | ||
63 | int strnicmp(const char *s1, const char *s2, size_t len) | ||
64 | { | ||
65 | return strncasecmp(s1, s2, len); | ||
66 | } | ||
67 | EXPORT_SYMBOL(strnicmp); | ||
68 | #endif | ||
69 | 61 | ||
70 | #ifndef __HAVE_ARCH_STRCASECMP | 62 | #ifndef __HAVE_ARCH_STRCASECMP |
71 | int strcasecmp(const char *s1, const char *s2) | 63 | int strcasecmp(const char *s1, const char *s2) |