]> git.hungrycats.org Git - linux/commit
sparc: Let memset return the address argument
authorAndreas Larsson <andreas@gaisler.com>
Fri, 29 Aug 2014 15:08:21 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:43:16 +0000 (09:43 -0700)
commit081dbb9fa94429333886ece9032fdd62b048b126
tree1876166104579313e40567228b8ecbbde81c348a
parent40b18eec95444be5806b8edad9fceebd4f808017
sparc: Let memset return the address argument

[ Upstream commit 74cad25c076a2f5253312c2fe82d1a4daecc1323 ]

This makes memset follow the standard (instead of returning 0 on success). This
is needed when certain versions of gcc optimizes around memset calls and assume
that the address argument is preserved in %o0.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/lib/memset.S