[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1327237109-25284-1-git-send-email-akinobu.mita@gmail.com>
Date: Sun, 22 Jan 2012 21:58:29 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org
Cc: Akinobu Mita <akinobu.mita@...il.com>,
Chris Zankel <chris@...kel.net>
Subject: [PATCH] xtensa: fix memscan
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@...il.com>
Cc: Chris Zankel <chris@...kel.net>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists