Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794062212; b=bd5FXuZogzgnJ/BsX4dNebqqoEa4s52jmvdi66uY5/PNroR3Wsrw1zZW5X49Mj+q7QNi XL0013uF/AvpRt2n1dw2HEWekcHJSgf6FdfdRfrSp+tyRGBsv8z7DkusSPncTp7x+55EF GwXrBNwN4ECv3GP9M1XuWFTtySFT2TV7lBATGROu4Cf3d5KNrdoBZTAFvM6tCsITnZ58z gtpeEFVwBA+DS7+A5cC4vr4q/pA6HIsZ956HGT2FJeCzfkmaeR7rqeOTSPkw3yu7IGMop d5PFWh4vgkkFncMJ/QAqFrfOZpRR1hZPNoyKNM1QP+s7BWNStTs/POtHaiyL9xT3nbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794062212; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=4aSs8yQSL98HQWXloG4jSME/bEobMYUywe/1VTdBaN4=; b=D4iQOhprm34pmxxCsKBQnwg9BkPVlpo3jRG4eZHdJ/kom0WRECvv/6b/la8NqxyjGN/4 A5gyKggnrvQN6wb8ANuFNUVOIVyY2rMlz5zD7Qsg+NMY3xUlz/z9Mg4jn5bEfs8T423HM 585w4WOidaQJgExyJ+2FtEJLRp+DKRoSRE5osq0I43ADsVaLMYRlnLUt+VYGUNzVtDp3G IzPhbXmg17fF/aQhDooyB2ek4x2KXd9I/GGHfY/Zss6ZCoYUB8rrzQXCf/J/3MXdDqENR 3Jij5FGr0DiQHhBvQxO8JGlcp99rtgiOHq+qsy5B0/baQLKchjrTT1UZ7yvtoDzUUQg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="DM14G1D/"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91F9D606A326; Sat, 7 Nov 2026 14:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DM14G1D/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FDEC1F0089F; Sat, 7 Nov 2026 14:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794062212; bh=4aSs8yQSL98HQWXloG4jSME/bEobMYUywe/1VTdBaN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DM14G1D/u+QSlJN4YxXmXdpjckLw9G8pA5qmd9SF55W2LWvSA2p3MBLCGB19MQq2A eWZfYzkTLE51gvspYcMJsURVdngSLwtJg1eUzyZo+I45Foe0VzKoIt9CbmyQs8j5c7 iUi7wIbaeS8LzmFXJmkidzQWl2e9Fe73jr5UZeCo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nathan Chancellor , Arend van Spriel , Johannes Berg , Sasha Levin Subject: [PATCH 6.12 1167/1536] wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz Date: Sat, 7 Nov 2026 08:53:03 -0500 Message-ID: <20261107135030.511890593@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261107134957.653319350@linuxfoundation.org> References: <20261107134957.653319350@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor [ Upstream commit f7463a9c99a506b3308a852f9aaaf2a26b659e95 ] After a recent change in clang to warn on signed char conversions within array initializers [1], there is a warning (or error with CONFIG_WERROR=y / W=e) from nphy_ipa_rxcal_gaintbl_2GHz: drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c:224:18: error: implicit conversion from 'int' to 's8' (aka 'signed char') changes value from 128 to -128 [-Werror,-Wconstant-conversion] 224 | {0, 0, 0, 0, 0, 128}, | ~ ^~~ 1 error generated. This value was introduced in the original staging merge of brcmsmac in commit a9533e7ea3c4 ("Staging: Add initial release of brcm80211 - Broadcom 802.11n wireless LAN driver.") and it is the same in the proprietary driver [2]. Presumably it is correct since there have been no reported issues, so update the value to '-128' to be type correct and clear up the warning. Cc: stable@vger.kernel.org Fixes: a9533e7ea3c4 ("Staging: Add initial release of brcm80211 - Broadcom 802.11n wireless LAN driver.") Link: https://github.com/llvm/llvm-project/commit/a5ef934a8d295dc03be3960f2b3744ec2e53238e [1] Link: https://lore.kernel.org/1a107e21b08.2873.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com/ [2] Signed-off-by: Nathan Chancellor Acked-by: Arend van Spriel Link: https://patch.msgid.link/20261005-brcmsmac-clang-24-constant-conversion-v1-1-a30c5692d582@kernel.org Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c index d362c4337616b..64b4473eac663 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c @@ -221,7 +221,7 @@ static const struct nphy_ipa_txrxgain nphy_ipa_rxcal_gaintbl_5GHz[] = { }; static const struct nphy_ipa_txrxgain nphy_ipa_rxcal_gaintbl_2GHz[] = { - {0, 0, 0, 0, 0, 128}, + {0, 0, 0, 0, 0, -128}, {0, 0, 0, 0, 0, 70}, {0, 0, 0, 0, 0, 20}, {0, 0, 0, 3, 0, 20}, -- 2.53.0