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 393A6335BCA; Mon, 18 Aug 2025 13:27:39 +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=1755523659; cv=none; b=VtMvPLfypbPkTJpPJv6fylQsmpxe3/ECwP4rGsU8gybCqHqNibpU4mdRgRA/lnTY/SOLPFscTAcsH+7INRfeoNK/eAQlpNv0d6v/eAYpCbVupW4PC8YyTPsoXLolT0o2cKeO8w9ghE+QMD6rXoVjKoGNDkRqF0u4vHrDrw14QoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755523659; c=relaxed/simple; bh=R6QZMF/V7qdaKNmAbTuFWfOR+T9LSRzbat9wsEI4mCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I42sw1Jx867GIbffba1bR35+HXRusjUIDB1xC69XJeaaGrSbBYuUdP/6OclkhoUor+CUeVirPpGwwVkoiwmPOaG5DP3QBnmN7qhQWteV4fIJhuV6ySfpmHwJ4Rdb9ilC78dNq9ZePeHMgy6pmPA3HG5fXjIQRige3bCw87X78gY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LNK12WKU; 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="LNK12WKU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4AB7C4CEF1; Mon, 18 Aug 2025 13:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755523659; bh=R6QZMF/V7qdaKNmAbTuFWfOR+T9LSRzbat9wsEI4mCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LNK12WKUHQN1FxaqV8uVjQRIEhtDaJfevgDljBPDM0QM2nxWWFnCPs2sLgWbFPN4X vybTktP1SkZa/Ax8E7cc9qAxyelbLD5TO4WZq/Qc7TnyF+xUM6rfeZSpgrMpmzF6xL FnzKlp/i816TgxEqnzK4o5b4CnnduNqAl1hQwi8s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vincent Mailhol , Marc Kleine-Budde , Sasha Levin Subject: [PATCH 6.15 222/515] can: ti_hecc: fix -Woverflow compiler warning Date: Mon, 18 Aug 2025 14:43:28 +0200 Message-ID: <20250818124506.912539860@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124458.334548733@linuxfoundation.org> References: <20250818124458.334548733@linuxfoundation.org> User-Agent: quilt/0.68 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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vincent Mailhol [ Upstream commit 7cae4d04717b002cffe41169da3f239c845a0723 ] Fix below default (W=0) warning: drivers/net/can/ti_hecc.c: In function 'ti_hecc_start': drivers/net/can/ti_hecc.c:386:20: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709551599' to '4294967279' [-Woverflow] 386 | mbx_mask = ~BIT(HECC_RX_LAST_MBOX); | ^ Signed-off-by: Vincent Mailhol Link: https://patch.msgid.link/20250715-can-compile-test-v2-1-f7fd566db86f@wanadoo.fr Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- drivers/net/can/ti_hecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c index 644e8b8eb91e..e6d6661a908a 100644 --- a/drivers/net/can/ti_hecc.c +++ b/drivers/net/can/ti_hecc.c @@ -383,7 +383,7 @@ static void ti_hecc_start(struct net_device *ndev) * overflows instead of the hardware silently dropping the * messages. */ - mbx_mask = ~BIT(HECC_RX_LAST_MBOX); + mbx_mask = ~BIT_U32(HECC_RX_LAST_MBOX); hecc_write(priv, HECC_CANOPC, mbx_mask); /* Enable interrupts */ -- 2.39.5