From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B2B623D7E3; Mon, 13 Apr 2026 16:04:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776096241; cv=none; b=ddh7D3ctcvDYBY2sl+OnAUVQSg1vHP/sjsswlt1Kzn6y8wUA6yRsSbmS6lfSY+U2jQZWTuNtwke/UkNVCtI0VEd588SjoUNZeQ6a16+KEQ9mJraShJ7zfxmHsRsRABqjpInOBN6/cmxDqNvdEbKFXYgS8imPJ3rv5Jjro/D6pUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776096241; c=relaxed/simple; bh=r9mO1WtSqCTS3rv1ZKUkc3dcjTRaZa3LB+djFGDJYa4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZFDKsG/ztRTxByKKVy6fi2rh7CYtiD3TW7p//e5jSXWC0jfHeAwPfI3cCe3vFzSGoXroSDLo9EgkCreOo5ssyo1QUTkndhoi+0bn/k6XIJfIz4wzflSxWEApOkotC3u0sPNKhdzZBmSf1/KQpR73V39TUGoDOMMDggyD52Q749g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oxexCN2t; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oxexCN2t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4915C2BCB0; Mon, 13 Apr 2026 16:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776096241; bh=r9mO1WtSqCTS3rv1ZKUkc3dcjTRaZa3LB+djFGDJYa4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oxexCN2tfaY/kn7R+GmP0N61nIJtTrxfIJBsARg3rt3Z9s2waTRDqAv8+odxKu1Xn iaSoUCckiiAH1K2ioDppe1xVADVya8jPn0hSOsuIN2Lb1tzMaBzfOeqyjPx/zLxGfn Q9monfSw/7nLekmKtCkyJKDgan9H8LJf0jOPiP5Y= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nicolas Schier , Nathan Chancellor Subject: [PATCH 6.19 21/86] modpost: Declare extra_warn with unused attribute Date: Mon, 13 Apr 2026 17:59:28 +0200 Message-ID: <20260413155732.370799009@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260413155731.568515178@linuxfoundation.org> References: <20260413155731.568515178@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor commit deb4605671cfae3b2803cfbbf4739e7245248398 upstream. A recent strengthening of -Wunused-but-set-variable (enabled with -Wall) in clang under a new subwarning, -Wunused-but-set-global, points out an unused static global variable in scripts/mod/modpost.c: scripts/mod/modpost.c:59:13: error: variable 'extra_warn' set but not used [-Werror,-Wunused-but-set-global] 59 | static bool extra_warn; | ^ This variable has been unused since commit 6c6c1fc09de3 ("modpost: require a MODULE_DESCRIPTION()") but that is expected, as there are currently no extra warnings at W=1 right now. Declare the variable with the unused attribute to make it clear to the compiler that this variable may be unused. Cc: stable@vger.kernel.org Fixes: 6c6c1fc09de3 ("modpost: require a MODULE_DESCRIPTION()") Link: https://patch.msgid.link/20260325-modpost-extra_warn-unused-but-set-global-v1-1-2e84003b7e81@kernel.org Reviewed-by: Nicolas Schier Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- scripts/mod/modpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -56,7 +56,7 @@ static bool allow_missing_ns_imports; static bool error_occurred; -static bool extra_warn; +static bool extra_warn __attribute__((unused)); bool target_is_big_endian; bool host_is_big_endian;