[PATCH] xtensa: fix memscan
From: Akinobu Mita
Date: Sun Jan 22 2012 - 07:58:19 EST
Define memscan as memchr is wrong. Because the return value of memscan
and memchr are different when the character is not found.
So use generic memscan implementation to fix it.
Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
Cc: Chris Zankel <chris@xxxxxxxxxx>
---
arch/xtensa/include/asm/string.h | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/arch/xtensa/include/asm/string.h b/arch/xtensa/include/asm/string.h
index 5fb8c27..405a8c4 100644
--- a/arch/xtensa/include/asm/string.h
+++ b/arch/xtensa/include/asm/string.h
@@ -118,7 +118,4 @@ extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
/* Don't build bcopy at all ... */
#define __HAVE_ARCH_BCOPY
-#define __HAVE_ARCH_MEMSCAN
-#define memscan memchr
-
#endif /* _XTENSA_STRING_H */
--
1.7.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/