Re: [PATCH] sh: fix sparse annotation in SH's __get_user_check()

2021-01-25 Thread Oliver Hartkopp
On 23.01.21 18:32, Luc Van Oostenryck wrote: The pointer in get_user() and friends is supposed to be a __user pointer. But in SH's implementation of __get_user_check(), the pointer is assigned to a local variable __gu_addr which is lacking the __user annotation. As consequence, a warning is issue

[PATCH] sh: fix sparse annotation in SH's __get_user_check()

2021-01-23 Thread Luc Van Oostenryck
The pointer in get_user() and friends is supposed to be a __user pointer. But in SH's implementation of __get_user_check(), the pointer is assigned to a local variable __gu_addr which is lacking the __user annotation. As consequence, a warning is issued for every of its uses. So, add the missing _