]> 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)
commit24ff482150a7c51c7750ab27d4385b700093afd0
treedbf521e559c8e31c91c08f33e6eb3ca65f9d9a24
parent00635c2713b3036850079b44b119357fdc7d720b
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