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 0CB2431E0F4; Mon, 18 Aug 2025 13:01:57 +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=1755522118; cv=none; b=WLY2/yKLBsUnB9zjlBRPEpy/IGzVF2S8aDfR7sXZ6sFk5iaUMD42gMVPULere5ZtAwOZyo64oUgMMxCKYlmnGeXbW075803t0IcqEUvp5lcI0uzp9f/8JNHECOTSvnaccVsShudD5F3CvNoypcXcHKuoCXHdglrOuNTcwsAg0wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755522118; c=relaxed/simple; bh=tSWTw07ZNHSYPEZjj3WNTBIhYdUha2fjK5m3sRG0RhY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MFAkC3iDuigUrmn7bD/OnvK7GpBpSxXZHpkHzaRxG7MYPNMuE2YM3yjXBQywPulhSh4pqs8Fon9nMU2JCbH8Bj0qp1IfpEvSmdwfHfHmhDhtX3KAz9Eq/osRb0DmhVIZ3yS23BIONzigRKXWN5076aUVGmsMBtxJLFt3feK0O+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=koTCWiGS; 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="koTCWiGS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31C69C4CEF1; Mon, 18 Aug 2025 13:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755522117; bh=tSWTw07ZNHSYPEZjj3WNTBIhYdUha2fjK5m3sRG0RhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=koTCWiGSAGonAZEUo3VQK1NeIOaUwxPanaLY5okGlQyCQYt7gI0v7UKxnMMt6Lmsz S6N7eWTI/1qqRXQclLCWZxXP430Hvj3d7cW3qfGkHgoSQ0ihcQBgakc1Zq996WSZeg hTxOw9F/AirDm/V8ZHFG6/2mh/VdAdsDyRjU57NM= 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.12 187/444] can: ti_hecc: fix -Woverflow compiler warning Date: Mon, 18 Aug 2025 14:43:33 +0200 Message-ID: <20250818124455.882653362@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124448.879659024@linuxfoundation.org> References: <20250818124448.879659024@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.12-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