]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 23:38:10 +0000 (16:38 -0700)
commit144d85cb804ac6d44aab73b9af3b5660955f48b8
treedbf521e559c8e31c91c08f33e6eb3ca65f9d9a24
parent8d57d80886887ebae1f870736bd957d04a64abde
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