lib: Remove strnicmp
Subsystems (3)
PATCH 1/1 lib: Remove strnicmp
Now that all in-tree users of strnicmp have been converted to strncasecmp, the wrapper can be removed.
Signed-off-by Rasmus Villemoes <[email protected]>
---
Notes:
For 3.20.
The "#undef __HAVE_ARCH_STRNICMP" in arch/s390/include/asm/string.h is a no-op, so removing it should be ok. I'm less certain about the change in arch/frv/, so please speak up if it should stay. (The patch hunk doesn't show it, but it is in a !__KERNEL__ section, so doesn't affect kernel builds.)
arch/frv/include/asm/string.h | 1 - arch/s390/include/asm/string.h | 1 - include/linux/string.h | 3 --- lib/string.c | 8 -------- 4 files changed, 13 deletions(-)
arch/frv/include/asm/string.h +0 -1
@@ -33,7 +33,6 @@ extern void *memcpy(void *, const void *, __kernel_size_t);#define __HAVE_ARCH_STRNCAT 1#define __HAVE_ARCH_STRCMP 1#define __HAVE_ARCH_STRNCMP 1 -#define __HAVE_ARCH_STRNICMP 1#define __HAVE_ARCH_STRCHR 1#define __HAVE_ARCH_STRRCHR 1#define __HAVE_ARCH_STRSTR 1
arch/s390/include/asm/string.h +0 -1
@@ -44,7 +44,6 @@ extern char *strstr(const char *, const char *);#undef __HAVE_ARCH_STRCHR#undef __HAVE_ARCH_STRNCHR#undef __HAVE_ARCH_STRNCMP -#undef __HAVE_ARCH_STRNICMP#undef __HAVE_ARCH_STRPBRK#undef __HAVE_ARCH_STRSEP#undef __HAVE_ARCH_STRSPN
include/linux/string.h +0 -3
@@ -40,9 +40,6 @@ extern int strcmp(const char *,const char *);#ifndef __HAVE_ARCH_STRNCMPextern int strncmp (const char *,const char *,__kernel_size_t );#endif -#ifndef __HAVE_ARCH_STRNICMP -#define strnicmp strncasecmp -#endif #ifndef __HAVE_ARCH_STRCASECMPextern int strcasecmp (const char *s1,const char *s2);#endif
lib/string.c +0 -8
@@ -58,14 +58,6 @@ int strncasecmp(const char *s1, const char *s2, size_t len) }EXPORT_SYMBOL (strncasecmp);#endif -#ifndef __HAVE_ARCH_STRNICMP -#undef strnicmp -int strnicmp (const char *s1,const char *s2,size_t len) -{ -return strncasecmp (s1, s2, len); -} -EXPORT_SYMBOL (strnicmp); -#endif #ifndef __HAVE_ARCH_STRCASECMPint strcasecmp (const char *s1,const char *s2)
Signature · 1 line
2.1.3