Re: [PATCH] powerpc: Avoid clang uninitialized warning in __get_user_size_allowed

2021-04-29 Thread Michael Ellerman
On Mon, 26 Apr 2021 13:35:18 -0700, Nathan Chancellor wrote: > Commit 9975f852ce1b ("powerpc/uaccess: Remove calls to __get_user_bad() > and __put_user_bad()") switch to BUILD_BUG() in the default case, which > leaves x uninitialized. This will not be an issue because the build will > be broken in

Re: [PATCH] powerpc: Avoid clang uninitialized warning in __get_user_size_allowed

2021-04-28 Thread Nathan Chancellor
On Tue, Apr 27, 2021 at 07:05:12AM +0200, Christophe Leroy wrote: > > > Le 26/04/2021 à 22:35, Nathan Chancellor a écrit : > > Commit 9975f852ce1b ("powerpc/uaccess: Remove calls to __get_user_bad() > > and __put_user_bad()") switch to BUILD_BUG() in the default case, which > > leaves x

Re: [PATCH] powerpc: Avoid clang uninitialized warning in __get_user_size_allowed

2021-04-26 Thread Christophe Leroy
Le 26/04/2021 à 22:35, Nathan Chancellor a écrit : Commit 9975f852ce1b ("powerpc/uaccess: Remove calls to __get_user_bad() and __put_user_bad()") switch to BUILD_BUG() in the default case, which leaves x uninitialized. This will not be an issue because the build will be broken in that case

[PATCH] powerpc: Avoid clang uninitialized warning in __get_user_size_allowed

2021-04-26 Thread Nathan Chancellor
Commit 9975f852ce1b ("powerpc/uaccess: Remove calls to __get_user_bad() and __put_user_bad()") switch to BUILD_BUG() in the default case, which leaves x uninitialized. This will not be an issue because the build will be broken in that case but clang does static analysis before it realizes the