From: Andreas Schwab Date: Tue, 18 May 2010 08:15:21 +0000 (+0000) Subject: powerpc: Fix string library functions X-Git-Tag: v2.6.35-rc1~450^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca5d0674c37840366f04a7bbfbf78e7b5f3ce0a4;p=pandora-kernel.git powerpc: Fix string library functions The powerpc strncmp implementation does not correctly handle a zero length, despite the claim in 0119536cd314ef95553604208c25bc35581f7f0a (Add hand-coded assembly strcmp). Additionally, all the length arguments are size_t, not int, so use PPC_LCMPI and eq instead of cmpwi and le throughout. Signed-off-by: Andreas Schwab Acked-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed