sparc: Let memset return the address argument
authorAndreas Larsson <andreas@gaisler.com>
Fri, 29 Aug 2014 15:08:21 +0000 (17:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 23:38:10 +0000 (16:38 -0700)
commit74cad25c076a2f5253312c2fe82d1a4daecc1323
treedbf521e559c8e31c91c08f33e6eb3ca65f9d9a24
parent408316258521168614bfb4da0e070490d3e65a17
sparc: Let memset return the address argument

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