mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: 468138d785 (binfmt_flat: flat_{get,put}_addr_from_rp()
should be able to fail)
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Al Viro <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
8363dae234
commit
b38e51cd16
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue