From mboxrd@z Thu Jan 1 00:00:00 1970 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=1794064446; b=kwEQxebOAyjubDEbVcyZJ5cIn36VRPOUla6qzOB/Wl+1nxoIUWpPCcfy2vW+ltR/9cD2 8I62vIjMjQomzYIDcGNf+KiOW1SWPswKqvR+pS//rLJdJlpjdKQAZV/w1izmPkvPka+dO YZvwED+1azNk0a3XE90CgoJ7tdrsySJodAdxV8ph+/PK79lIMJZ+C/zg7rInHq99Jlgbw seR4sPWi+KLiUTvrOCwJvpxCprmOR/lgkM1PfK5kNw4vm3xQAzHeeArUYcQRy6ZPulobB XY8zn7abGiA4P/zamGGpZLfpOJexCWOHgjetxcgi4Ax1gAqdaKJ2jGjLm4KSLu1WPig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794064446; 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=HrK1rEvFKOUqTbT8zxzBTndVcdFVI44H/oSs6xqr0j0=; b=yemFQ5OqOlEBrEsU5AaBJ77j8547pMlb7xkATwbbjTQpTrPL5+t350czDbP5Tax77evh ZcZl6vkQ1BFWXuABYlQ5ErhOcEo1R7oFmIkBkl/f2C+m+vS2Rj5K4KU2eeDqMEEY9EPdC 2qGBhxlK7y91vWrUlzDlPwx8OGhZqML63VFConFzk6jYuhTn0X7PpAAlTW3HKnqvWOjD3 F76CabJbAfJ6ogpLon7Oa9iik+mU5aFG1kpVQLucpfpbez1f0zSDnGjl8Oc8OA5+fpuhq tBkyTIrn0FJgla9CpN47AuVjAFn0KQ8aL5JWEI5APNS1dAI9HCLl6UPp41BNL+oDI6w== 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=ESquviBA; 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 93AD4606EEB6; Sat, 7 Nov 2026 15:14:06 +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=ESquviBA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A80C1F0089F; Sat, 7 Nov 2026 15:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794064446; bh=HrK1rEvFKOUqTbT8zxzBTndVcdFVI44H/oSs6xqr0j0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ESquviBAnPPqMtbh2wBuX3sB4v1kLqDO8of13tT54bmkg/mu3OciJU5evI0+TPvwT QhmLgT/STKAKkcd78lcBbKELcOot7MmzlL/aWxd9l9GqHEcJNXRJQ8I6r1HbNfF6m0 nKZMAq/gD20f14AGEtUCxROgQH45acXfg8fDnVRg= 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 7.3 0490/1257] wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz Date: Sat, 7 Nov 2026 08:46:26 -0500 Message-ID: <20261107134952.976140275@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261107134939.434104957@linuxfoundation.org> References: <20261107134939.434104957@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-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 86cfa3e87a042..9ddd5d519893e 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