Thread (15 messages) 15 messages, 6 authors, 2026-05-11

Re: [PATCH RESEND 1/2] powerpc/ps3: Drop redundant result assignment

From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
Date: 2026-03-18 12:21:23
Also in: lkml, llvm


Le 18/03/2026 à 12:58, Segher Boessenkool a écrit :
On Wed, Mar 18, 2026 at 12:54:30PM +0100, Krzysztof Kozlowski wrote:
quoted
On 18/03/2026 12:51, Segher Boessenkool wrote:
quoted
On Tue, Mar 17, 2026 at 02:08:24PM +0100, Krzysztof Kozlowski wrote:
quoted
Return value of ps3_start_probe_thread() is not used, so code can be
simplified to fix W=1 clang warnings:

   arch/powerpc/platforms/ps3/device-init.c:953:6: error: variable 'result' set but not used [-Werror,-Wunused-but-set-variable]
And this is exactly why -Werror is harmful.  A boring harmless warning
turned into a build break :-(
-Werror does not matter here. We do not want warnings either, assuming
of course they are correct.

So if this warning is correct, then patch should be applied and WERROR
is irrelevant.
The build is broken.  -Werror is positively harmful.

Yes, you want the warnings fixed, but maybe something else has priority
right now?
But if I understand correctly this is a build performed with W=1

Without W=1 there is no build breakage.

Someone who forces W=1 on its build can be expected to unselect 
CONFIG_PPC_WERROR if it is needed for him, no ?

Christophe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help