]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc: Let memset return the address argument
authorAndreas Larsson <andreas@gaisler.com>
Fri, 29 Aug 2014 15:08:21 +0000 (17:08 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:05:17 +0000 (15:05 +0100)
commit9e9b1c45d28215e49d10e3595cf4ee67480adf2f
treee1d2294229a969c591929f5258dbd2f97bf26da9
parent0f4b3a2ea626749e2a04181d2488876b5460463b
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>
arch/sparc/lib/memset.S