binfmt_flat: fix arch/m32r and arch/microblaze flat_put_addr_at_rp()
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 30 Jul 2017 17:25:37 +0000 (10:25 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 31 Aug 2017 21:32:42 +0000 (17:32 -0400)
commitb38e51cd167927225ae0c26bd404403b7b1cd2f3
tree2806d9b8ee935e99c70b43c6e11a74548c1e2008
parent8363dae23463df5d27aa3f3430ad64f5c8fcee3e
binfmt_flat: fix arch/m32r and arch/microblaze flat_put_addr_at_rp()

Change the m32r flat_put_addr_at_rp() function to return int and
always return 0.

The microblaze function already returned 0 so just change its
function return type from void to int.

Seven (7) other arch-es already have this function as returning
an int type result.

Fixes: 468138d78510 (binfmt_flat: flat_{get,put}_addr_from_rp()
should be able to fail)

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/m32r/include/asm/flat.h
arch/microblaze/include/asm/flat.h