Skip to content

Commit 9e9da64

Browse files
lucvoostffrdhrn
authored andcommitted
openrisc: fix __user in raw_copy_to_user()'s prototype
raw_copy_to_user()'s prototype seems to be a copy & paste of raw_copy_from_user() and as such has the __user annotation in the 'from' argument instead of the 'to'. So, move the __user annotation in the prototype to the 'to'. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
1 parent bcf8768 commit 9e9da64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/openrisc/include/asm/uaccess.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long size)
241241
return __copy_tofrom_user(to, (__force const void *)from, size);
242242
}
243243
static inline unsigned long
244-
raw_copy_to_user(void *to, const void __user *from, unsigned long size)
244+
raw_copy_to_user(void __user *to, const void *from, unsigned long size)
245245
{
246246
return __copy_tofrom_user((__force void *)to, from, size);
247247
}

0 commit comments

Comments
 (0)