Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp867406pxb; Tue, 1 Feb 2022 12:04:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3tUd666oqZeSPDr1tZz9ikR5r+NQqMx5WDm0OwlGqSKswy0vs1DsW6fDFuKEn6aBcG54g X-Received: by 2002:a17:90a:e2ca:: with SMTP id fr10mr4180525pjb.51.1643745875568; Tue, 01 Feb 2022 12:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643745875; cv=none; d=google.com; s=arc-20160816; b=adrvqQjYDt1Jbd+kMQ56xB9T4AlOtoeJyAtxKQ25Yc6epVlHUkbXirQ/fIyisUIsyx iEIjr+8RgpT7M6RiMrbbJN7WnFmM7LNTBW6NE7Lo2U+wzzUpiFDupPIgFzjOUkGtZOdt A+NupqkyvQZh911CifOyYP5kKqjFz9OQ99JAfQ76YOM1S4xLaIb2u/DZCYgt+S9QV3E7 +xSDzwRn/aLqAtoBKs8KUjms8mAvoYMAp2kPLWFOjdKFue8UPdXboTA+osCRw48yZs1w pn9N4C2PBiMVlwLJnNaObGJtQXHbZKzX2B87CKeKXsjXYJqnhKI19bmCkOL4Bwox3kVq p5AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=81aCe+IO+IwMzATkq/InKXY3jtb6YfaSx0B7OGzSQwU=; b=ImAdEFbNcSxi9Oefe+kMph/3HtzNhvzk7H/c0E7Pb7JsITUaaeWUWcPEgByEeq52ev WCXa3T4Ib0fmrbvXuCEgkjQsq73l9+tXrCvi24HWQ/rBYi7jf4Yz3gZRmMX5mcwNKEu6 FNj6ssT780WV7txrpiWWCBUMIXw9SmoMHVuYyUTvBxmvB1AAu9LPf2Dr9KJnxDRcZimf mj5c9+hgbUQTR4tt5hxRoiwyX8JF65c6o8aMh4Mo9cGaX8/Z/BbOon1Z9OZ0a5sNQgDz dva6h+mHUxcMC5acyKf/OFtnxu3PuwlB/VIF+c6xJQnw+Tdro238NidSoYh8Lee7xhk0 dwIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Bph26F4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l71si16182200pge.724.2022.02.01.12.04.23; Tue, 01 Feb 2022 12:04:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Bph26F4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376767AbiAaLQW (ORCPT + 99 others); Mon, 31 Jan 2022 06:16:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376987AbiAaLJ0 (ORCPT ); Mon, 31 Jan 2022 06:09:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DC02C061777; Mon, 31 Jan 2022 03:06:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BE9D2B82A74; Mon, 31 Jan 2022 11:06:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBAE1C340E8; Mon, 31 Jan 2022 11:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643627166; bh=rzVO/2az8f+goj1WhpUhD/OCjQLJr0nUHjFRc4YWh50=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Bph26F41TfSnzYw23FKKA4VPFRAUUSlGoQERZPo6WMB3QNr0yBKc0/AGy2VRR8nJ eimDSrKjOmz8UxGQ3PjCH+QQr/XQFcTDACE0lsPVXZgeLAVVWexoA6tAFn+7a2dOz4 1BqHXx/5zXWQK6gdvDyDOFUo9EEsztun0BnyegOY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , David Ahern , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 095/100] ipv4: remove sparse error in ip_neigh_gw4() Date: Mon, 31 Jan 2022 11:56:56 +0100 Message-Id: <20220131105223.645251314@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105220.424085452@linuxfoundation.org> References: <20220131105220.424085452@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet [ Upstream commit 3c42b2019863b327caa233072c50739d4144dd16 ] ./include/net/route.h:373:48: warning: incorrect type in argument 2 (different base types) ./include/net/route.h:373:48: expected unsigned int [usertype] key ./include/net/route.h:373:48: got restricted __be32 [usertype] daddr Fixes: 5c9f7c1dfc2e ("ipv4: Add helpers for neigh lookup for nexthop") Signed-off-by: Eric Dumazet Reviewed-by: David Ahern Link: https://lore.kernel.org/r/20220127013404.1279313-1-eric.dumazet@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- include/net/route.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/route.h b/include/net/route.h index ff021cab657e5..a07c277cd33e8 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -369,7 +369,7 @@ static inline struct neighbour *ip_neigh_gw4(struct net_device *dev, { struct neighbour *neigh; - neigh = __ipv4_neigh_lookup_noref(dev, daddr); + neigh = __ipv4_neigh_lookup_noref(dev, (__force u32)daddr); if (unlikely(!neigh)) neigh = __neigh_create(&arp_tbl, &daddr, dev, false); -- 2.34.1