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=1795058406; b=r+DWz84Es4TCs92FTHziYXIu3jwSQTNyw3JCKYUNE9K19KiQFO+EDtCYptMCghuewNuI /xNtRhnh8suHB4NbaVHQe+m5jalSgpx36kCbxXhEciiS0ivoSCAnk9xwbHvq29iw1ywED +8m6axoUIVB33T0vL92/bp7uYiF/QsSsSJpxrddl6JQPy1ULkHGnnmwKERktbcUrS1HQP OPQLAhXoCUfTN/5qFeSJ7E7rQslL8iEICLg9hnra73O86Q9fIvy7hdws6CMazeSIC6P6+ +FjBeGLwTNA78hz6nqhjHfytaDDBsZXmCHRpUfDLDihG5T7EH8GWME4gi+fEvfGLxvw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795058406; 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=tqmC5WdVscFyVQxztfWVmdwV3NyDY4o7tSmp79XDsA0=; b=4f7J1SVbjzvesPTvpkwj7u5L27RTtuet543ic7RrLT4k4LRqeWHUv3lw7Yw6lv4OoC+E y5gAHwMM/9vTpxCzCfyQcE+PlsijiU+3YY/3vV9ChtAYFsfrY6sRQPZ5wGymI9zqom8BM achKGQjsKl1/MajjvYQxpUBRVH0ECeRMDaGjRTjC7R+bOMHkx5QITvCCi0nBzfQiw0EHw Qmzo8JV+sz/qLV3MoS7VruYdz4shf3zF4cauFxs2uTJkFgPz/7Pv0r5OteoSt/uNZBRjC gJogxwravMTev+SDsBhOigA4zXEgdw/1c0K6d6b7+bZMligJHTF/pYKq4CIOvAnpysQ== 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=ycZw2Cp3; 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 CEE37606A31C; Thu, 19 Nov 2026 03:20: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=ycZw2Cp3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E2701F000C4; Thu, 19 Nov 2026 03:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795058406; bh=tqmC5WdVscFyVQxztfWVmdwV3NyDY4o7tSmp79XDsA0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ycZw2Cp3ktsnOT3tu4TxSOt/8utq+VXLAawc88nTT+mV++C8dZ9iGnITOOrFnPJq5 wle8X4TkRPtd9TkLOodhWShJqp9ff/MoJUeSVcrfn4DFTr/sfmkm/ZE/yGx68MWfc7 ne0Dsf+DWGmHmtQXAw+f2xIVbArfk+awuxIc9U7s= 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 5.10 0473/1848] wifi: brcmsmac: Adjust txpwrindex value in nphy_ipa_rxcal_gaintbl_2GHz Date: Wed, 18 Nov 2026 15:41:51 +0100 Message-ID: <20261118145934.105246322@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118145911.150052362@linuxfoundation.org> References: <20261118145911.150052362@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 5.10-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 42e7bc67e9143..930f22418a4c4 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