Skip to content
Commit 9e2b6ed4 authored by Luc Van Oostenryck's avatar Luc Van Oostenryck Committed by Greg Ungerer
Browse files

m68k,nommu: fix implicit cast from __user in __{get,put}_user_asm()



The assembly for __get_user_asm() & __put_user_asm() uses memcpy()
when the size is 8.

However, the pointer is always a __user one while memcpy() expects
a plain one and so this cast creates a lot of warnings when using
Sparse.

So, fix this by adding a cast to 'void __force *' at memcpy()'s
argument.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
parent ce3e8375
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment