[PATCH v2 01/22] lib: string: import case-insensitive string compare

Sascha Hauer s.hauer at pengutronix.de
Thu Jun 20 05:04:06 EDT 2013


This patch needs the following before it to not break ppc compilation.

Sascha


>From 1a8c27b7ad29bfa5f868db15e11da8e6bdc7d01f Mon Sep 17 00:00:00 2001
From: Sascha Hauer <s.hauer at pengutronix.de>
Date: Thu, 20 Jun 2013 11:02:09 +0200
Subject: [PATCH] ppc: remove strcasecmp/strncasecmp prototypes

ppc does not implement these, so remove the prototypes and use
the ones from include/linux/string.h

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/ppc/include/asm/string.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/ppc/include/asm/string.h b/arch/ppc/include/asm/string.h
index d912a6b..33d143f 100644
--- a/arch/ppc/include/asm/string.h
+++ b/arch/ppc/include/asm/string.h
@@ -13,8 +13,6 @@
 #define __HAVE_ARCH_MEMCMP
 #define __HAVE_ARCH_MEMCHR
 
-extern int strcasecmp(const char *, const char *);
-extern int strncasecmp(const char *, const char *, int);
 extern char * strcpy(char *,const char *);
 extern char * strncpy(char *,const char *, __kernel_size_t);
 extern __kernel_size_t strlen(const char *);
-- 
1.8.3.1


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list