Skip to content

Commit af3cd13

Browse files
Villemoestorvalds
authored andcommitted
lib/string.c: 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 <linux@rasmusvillemoes.dk> Cc: David Howells <dhowells@redhat.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9814ec1 commit af3cd13

4 files changed

Lines changed: 0 additions & 13 deletions

File tree

‎arch/frv/include/asm/string.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extern void *memcpy(void *, const void *, __kernel_size_t);
3333
#define __HAVE_ARCH_STRNCAT 1
3434
#define __HAVE_ARCH_STRCMP 1
3535
#define __HAVE_ARCH_STRNCMP 1
36-
#define __HAVE_ARCH_STRNICMP 1
3736
#define __HAVE_ARCH_STRCHR 1
3837
#define __HAVE_ARCH_STRRCHR 1
3938
#define __HAVE_ARCH_STRSTR 1

‎arch/s390/include/asm/string.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ extern char *strstr(const char *, const char *);
4444
#undef __HAVE_ARCH_STRCHR
4545
#undef __HAVE_ARCH_STRNCHR
4646
#undef __HAVE_ARCH_STRNCMP
47-
#undef __HAVE_ARCH_STRNICMP
4847
#undef __HAVE_ARCH_STRPBRK
4948
#undef __HAVE_ARCH_STRSEP
5049
#undef __HAVE_ARCH_STRSPN

‎include/linux/string.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ extern int strcmp(const char *,const char *);
4040
#ifndef __HAVE_ARCH_STRNCMP
4141
extern int strncmp(const char *,const char *,__kernel_size_t);
4242
#endif
43-
#ifndef __HAVE_ARCH_STRNICMP
44-
#define strnicmp strncasecmp
45-
#endif
4643
#ifndef __HAVE_ARCH_STRCASECMP
4744
extern int strcasecmp(const char *s1, const char *s2);
4845
#endif

‎lib/string.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ int strncasecmp(const char *s1, const char *s2, size_t len)
5858
}
5959
EXPORT_SYMBOL(strncasecmp);
6060
#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
6961

7062
#ifndef __HAVE_ARCH_STRCASECMP
7163
int strcasecmp(const char *s1, const char *s2)

0 commit comments

Comments
 (0)