Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp859522pxb; Tue, 1 Feb 2022 11:56:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdh8ddbdFUPM6HOi6b7PJ4nZoqi6RbTEyt5OONfKiw1YxTyX9A6f9Rh+JHmccBliNivDNH X-Received: by 2002:a17:907:a0c9:: with SMTP id hw9mr22030486ejc.421.1643745373449; Tue, 01 Feb 2022 11:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643745373; cv=none; d=google.com; s=arc-20160816; b=JDUn/+YNxxdPp7PEn5ozlBJPmk+tJzeh9/BmOWtPxf1IHS2eSOpOLyJacmcFScXSwf A3S3yAXj33wzJpCwnF6p96YBcExbG8fH1QSTM1AfyQrnglVAYEc8TJwSwDZv5l3Tap5P 8HPSyuQNyc71tuOup97aW9qY3x4VKBAAazLGKm8+Y9YJe7Y+owGqxQ6NaS7fzSW5A67C 3tghfO6N2QD2j8xyPL7A2r+8I7qTQ/h0uo6wHkIG6Yp6GcE/d7c0sIkYRt2sMzV0DVPM avtGRskMORnvbi/lPCPgguTXzyeSi/2H1wwiExL6qvYpny0Vpoeb6wvl7YAnBooAlfzx 03wg== 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=FsW/y2qQPg2GRfB272MYLyp6NpOhoeV8xtVKr/MjKvg=; b=Xo1D805Jy5Pql064yy47FaKGwesxEy5P+O9ArL9VfyuPvGYD2k7jAKHy9syeg7WrjU 1U/RDfGpEYqAt76kpzHQ+pzITU+3mZ6WKjMF5xW4KdHQsuzfTYlltdPANEsbMV4JSjgP WHtP5LCUILYtacn2hvBm3M9HHZ6KYLW8Let8j1srMzfTwfMhJ09WxBQpw7nf3yjvdYzY oCLikWfkTIE808l9VKx8woNeXm06+szXhNDWC0H6e4LNkPHW8iYYA97zAi01QHBnwHvt y69tc46uY3JVOEzgN/+q8JSo84Cv6TAxHcWeqf8uVFrFypv/9FMymRb9HO35FB0CqW3C nXYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="P/jzkdWN"; 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 s2si9224545ejs.741.2022.02.01.11.55.48; Tue, 01 Feb 2022 11:56:13 -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="P/jzkdWN"; 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 S1358916AbiAaLEE (ORCPT + 99 others); Mon, 31 Jan 2022 06:04:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358800AbiAaLCf (ORCPT ); Mon, 31 Jan 2022 06:02:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50854C06136E; Mon, 31 Jan 2022 03:00:56 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E586460B28; Mon, 31 Jan 2022 11:00:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA944C340F0; Mon, 31 Jan 2022 11:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643626855; bh=/JNizw2DE/Nlkh/hEPWIG7X7g8UTIItZA4wTHSrZrjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P/jzkdWNXmXiTPXWFfBSpR4PMjawCu3c+VkTQv8BJcg5y2ZgXv5qw3nRKMCs5JlZf /zFufVZxB7UGv806EcKG3MUnbtvnxMGfmRHxsO56L2kutozvNlW4H6ff8HNGjedtaB Lg6ceGjYfKdWwzqRTBOwF5QZBNN0PRyxAwrLXdIo= 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.4 61/64] ipv4: remove sparse error in ip_neigh_gw4() Date: Mon, 31 Jan 2022 11:56:46 +0100 Message-Id: <20220131105217.726529190@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105215.644174521@linuxfoundation.org> References: <20220131105215.644174521@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 6c516840380db..b85d1912d84fd 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -359,7 +359,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