From nobody Sat Feb 7 01:40:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77965C61D92 for ; Wed, 22 Nov 2023 07:19:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234904AbjKVHTm (ORCPT ); Wed, 22 Nov 2023 02:19:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjKVHTk (ORCPT ); Wed, 22 Nov 2023 02:19:40 -0500 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA7190; Tue, 21 Nov 2023 23:19:33 -0800 (PST) X-UUID: 3cb444fcdc14419ba30ed73f5a5b594e-20231122 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:690b7766-bafe-4e14-9d4e-eccc00a34c8e,IP:5,U RL:0,TC:0,Content:-5,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:10 X-CID-INFO: VERSION:1.1.32,REQID:690b7766-bafe-4e14-9d4e-eccc00a34c8e,IP:5,URL :0,TC:0,Content:-5,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:10 X-CID-META: VersionHash:5f78ec9,CLOUDID:5080ad95-10ce-4e4b-85c2-c9b5229ff92b,B ulkID:231122151928U26QUJM1,BulkQuantity:0,Recheck:0,SF:17|19|44|66|38|24|1 02,TC:nil,Content:0,EDM:5,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL :0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 3cb444fcdc14419ba30ed73f5a5b594e-20231122 X-User: chentao@kylinos.cn Received: from vt.. [(116.128.244.169)] by mailgw (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1022259079; Wed, 22 Nov 2023 15:19:27 +0800 From: Kunwu Chan To: davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, jkbs@redhat.com Cc: kunwu.chan@hotmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH v3] ipv6: Correct/silence an endian warning in ip6_multipath_l3_keys Date: Wed, 22 Nov 2023 15:19:24 +0800 Message-Id: <20231122071924.8302-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" net/ipv6/route.c:2332:39: warning: incorrect type in assignment (different = base types) net/ipv6/route.c:2332:39: expected unsigned int [usertype] flow_label net/ipv6/route.c:2332:39: got restricted __be32 Fixes: 23aebdacb05d ("ipv6: Compute multipath hash for ICMP errors from off= ending packet") Suggested-by: Eric Dumazet Suggested-by: Paolo Abeni Signed-off-by: Kunwu Chan --- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index b132feae3393..1fdae8d71339 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2329,7 +2329,7 @@ static void ip6_multipath_l3_keys(const struct sk_buf= f *skb, } else { keys->addrs.v6addrs.src =3D key_iph->saddr; keys->addrs.v6addrs.dst =3D key_iph->daddr; - keys->tags.flow_label =3D ip6_flowlabel(key_iph); + keys->tags.flow_label =3D (__force u32)ip6_flowlabel(key_iph); keys->basic.ip_proto =3D key_iph->nexthdr; } } --=20 2.34.1