summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2017-07-30 10:25:37 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2017-08-31 17:32:42 -0400
commitb38e51cd167927225ae0c26bd404403b7b1cd2f3 (patch)
tree2806d9b8ee935e99c70b43c6e11a74548c1e2008 /arch/microblaze/include/asm
parent8363dae23463df5d27aa3f3430ad64f5c8fcee3e (diff)
downloadblackbird-obmc-linux-b38e51cd167927225ae0c26bd404403b7b1cd2f3.tar.gz
blackbird-obmc-linux-b38e51cd167927225ae0c26bd404403b7b1cd2f3.zip
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>
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r--arch/microblaze/include/asm/flat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/flat.h b/arch/microblaze/include/asm/flat.h
index f23c3d266bae..3d2747d4c967 100644
--- a/arch/microblaze/include/asm/flat.h
+++ b/arch/microblaze/include/asm/flat.h
@@ -60,7 +60,7 @@ static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
* unaligned.
*/
-static inline void
+static inline int
flat_put_addr_at_rp(u32 __user *rp, u32 addr, u32 relval)
{
u32 *p = (__force u32 *)rp;
OpenPOWER on IntegriCloud