From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77ACB3D3006 for ; Wed, 18 Mar 2026 11:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.228.1.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773834719; cv=none; b=A5gfS6hr/+V9ZTBfEeaEg5ZpZ/FBhQATW/dqCsoO2lgsVwrKpAQqpULoF70lBgfj4IltLPpjawRiX75kSpJC3MqfszmnSdMoU59WXUfw68SZ9dD8lHyDLWCQO/adTDq8VQtUcxd3Iuu80OUYTB6bQtHdi0cISK0q9+XtvSNCuCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773834719; c=relaxed/simple; bh=GPwuBGs6YzbKqMVvvMnF/NkroSbeEseMllhaWUAtXhk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bqZj9QbWY1sismoHnV2NEJZ0HlwKxzV6DTbvz4MMPp2HT6Cs3NsQ+qPr5zBIRZ7ygS1KtwvKrz6DGOn1/W4qySAbw3sK+92fWNJuxDJJyiQab0yxORlOTWJkuAuZa5H+RxzdUGIGP7BaO2nIonwy/K4QLtAIE8FxKpWkk7fCUeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org; spf=pass smtp.mailfrom=kernel.crashing.org; arc=none smtp.client-ip=63.228.1.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost [127.0.0.1]) by gate.crashing.org (8.18.1/8.18.1/Debian-2) with ESMTP id 62IBpPiG963920; Wed, 18 Mar 2026 06:51:25 -0500 Received: (from segher@localhost) by gate.crashing.org (8.18.1/8.18.1/Submit) id 62IBpO97963917; Wed, 18 Mar 2026 06:51:24 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 18 Mar 2026 06:51:24 -0500 From: Segher Boessenkool To: Krzysztof Kozlowski Cc: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Geoff Levand , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH RESEND 1/2] powerpc/ps3: Drop redundant result assignment Message-ID: References: <20260317130823.240279-3-krzysztof.kozlowski@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260317130823.240279-3-krzysztof.kozlowski@oss.qualcomm.com> On Tue, Mar 17, 2026 at 02:08:24PM +0100, Krzysztof Kozlowski wrote: > 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 :-( You can sometimes usefully turn *some* warnings into errors, and any user is of course free to invite as much pain as he or she wants to bear, but heaping nonsense like this onto unsuspecting users is just evil. And it is even worse when the warnings can change with compiler version! Segher