Re: [PATCH] asm-generic: Force cast get_user() setting x to 0

2017-02-27 Thread Arnd Bergmann
On Sat, Feb 25, 2017 at 2:24 AM, Stephen Boyd wrote: > Quoting Stephen Boyd (2017-02-17 08:52:29) >> If we call get_user() with an __le* or __be* type sparse will >> complain when we assign the result to 0 on the faulting path. >> Let's force cast here so that sparse doesn't complain. This >> mirr

Re: [PATCH] asm-generic: Force cast get_user() setting x to 0

2017-02-24 Thread Stephen Boyd
Quoting Stephen Boyd (2017-02-17 08:52:29) > If we call get_user() with an __le* or __be* type sparse will > complain when we assign the result to 0 on the faulting path. > Let's force cast here so that sparse doesn't complain. This > mirrors what we do in __get_user() as well. > > Signed-off-by:

[PATCH] asm-generic: Force cast get_user() setting x to 0

2017-02-17 Thread Stephen Boyd
If we call get_user() with an __le* or __be* type sparse will complain when we assign the result to 0 on the faulting path. Let's force cast here so that sparse doesn't complain. This mirrors what we do in __get_user() as well. Signed-off-by: Stephen Boyd --- I made a similar fix to arm64 header