Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp652351pxv; Thu, 15 Jul 2021 12:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBKHgwn4qJAXl6wFpZs1eVpaCH3XWEk8eYMyaL/VkQgg/8x3SdLCOAbWLzAAZ4jxeJ2GNK X-Received: by 2002:a17:906:25d5:: with SMTP id n21mr7338400ejb.156.1626377511029; Thu, 15 Jul 2021 12:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377511; cv=none; d=google.com; s=arc-20160816; b=peHBbdx/JB0IJNk8+C3sgbyfnWQBI4yTAAO0RWkNeJ2swMH0aWc0GPfCB5q2QmwE02 oEieToqmK0X6gw160y8W1E7ImZWe3ZMer9t2Gk5Lky+IF8QJa0XD7ruRFV6mQ2+HhClz ayi/oFNqca1xCmdZr+uUrbZBX9ADk55T77bHCoa5jJ668c41OkP0ACQPTQ6P2TbxxD1Y DZcV1V/F/aiCN14kQtQVifEh7/9wt9YlQwfEaEjsV+JPg9xdrFtzIveCSozK7NOzLI2L fw/kYM2v+pLCj2KKnxSea44gNsLuh59g1LWPu2stF0UiJWxPUW+F0ci+hRse5yz41bvK A/dg== 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=UZi0GJntQ++2Twp3AjH2qf3VV7e1vgNc0lVRLU4+/f8=; b=0L8stkDANBWImyTuILTDvBBDpvh3vtX7bvPuog00K19JJzTBmnE3XA7cGhWix42FNG UGZTx+BFTkq4hWNDVwEvkrEZp+ZS7mBWV7sY98L8Z1/2lEk5cjvXWpWY6uFexYzMBs7A q9sllHrvSnG54YZqcdVtaaiDnPnIOszAhJ1KkEsuz6/4yj4vYg3QDoJKBYUJIcCUDVxW OLNcdgBFjDFUaaRQAHIVTNCucWBYP58Q/22jOnAJf6iN6Ho6VgsC2jQ7Mpf2tnYNhlDJ XTNQd9FCCK9qW8SqHDMD/ONmanyjri7W0/J9500H/5Wa2DzGV6UAK0CfazcqEe9pAgVd PwPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xCWUWA5I; 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 w17si8255177edt.198.2021.07.15.12.31.28; Thu, 15 Jul 2021 12:31:51 -0700 (PDT) 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=xCWUWA5I; 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 S241875AbhGOTbq (ORCPT + 99 others); Thu, 15 Jul 2021 15:31:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:46396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243632AbhGOTJ6 (ORCPT ); Thu, 15 Jul 2021 15:09:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 21590613D8; Thu, 15 Jul 2021 19:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375963; bh=bCoeEDpeakw8Oebug4Gh/pTMiYMIT4eJH2E2tGUXFGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xCWUWA5Ivua5aWdtEEOQgOc0UoIHZamDd1o9RdWGrCpamDWAtwxh2oXWlvUwmOeKZ E5P+knAgF4BiEii23e5vUfJzJpkV8omTwyLi6fCYsyRi1Zo271zDS5IUP24yarzthC AbEKQQin35r4y+3hx6lo1ubm/WukQkdgEAzjcEwc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andreas Roeseler , "David S. Miller" , Sasha Levin Subject: [PATCH 5.13 066/266] icmp: fix lib conflict with trinity Date: Thu, 15 Jul 2021 20:37:01 +0200 Message-Id: <20210715182625.903768521@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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: Andreas Roeseler [ Upstream commit e32ea44c7ae476f4c90e35ab0a29dc8ff082bc11 ] Including and in the dependencies breaks compilation of trinity due to multiple definitions. is only used in to provide the definition of the struct in_addr, but this can be substituted out by using the datatype __be32. Signed-off-by: Andreas Roeseler Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- include/uapi/linux/icmp.h | 3 +-- net/ipv4/icmp.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/icmp.h b/include/uapi/linux/icmp.h index c1da8244c5e1..163c0998aec9 100644 --- a/include/uapi/linux/icmp.h +++ b/include/uapi/linux/icmp.h @@ -20,7 +20,6 @@ #include #include -#include #include #include @@ -154,7 +153,7 @@ struct icmp_ext_echo_iio { struct { struct icmp_ext_echo_ctype3_hdr ctype3_hdr; union { - struct in_addr ipv4_addr; + __be32 ipv4_addr; struct in6_addr ipv6_addr; } ip_addr; } addr; diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index 752e392083e6..0a57f1892e7e 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c @@ -1066,7 +1066,7 @@ static bool icmp_echo(struct sk_buff *skb) if (ident_len != sizeof(iio->ident.addr.ctype3_hdr) + sizeof(struct in_addr)) goto send_mal_query; - dev = ip_dev_find(net, iio->ident.addr.ip_addr.ipv4_addr.s_addr); + dev = ip_dev_find(net, iio->ident.addr.ip_addr.ipv4_addr); break; #if IS_ENABLED(CONFIG_IPV6) case ICMP_AFI_IP6: -- 2.30.2