Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1579997pxb; Thu, 4 Feb 2021 17:30:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIskumEUbq5IaOkRA7HkHck3N/AiwrV9NFnUl0L1q0Re+c3L+Z6uqstkI70IuSGJhqD5rs X-Received: by 2002:a17:906:1c13:: with SMTP id k19mr1774078ejg.338.1612488600091; Thu, 04 Feb 2021 17:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612488600; cv=none; d=google.com; s=arc-20160816; b=usfAmaRTrwDbPViD5y7PTdv7ZOzYeDuqFpYS2u9Qo3Z9Ds9IIywTsLUGdbdY2T0dd1 ELT5AuJFBZC75Gk/uchX2xl1zAc3aEOIeEucIhZn+y5Fq4IHHHptZP7TbzdCrPEeBnd+ OprsqQxJI1DbPWxxhUiZEgZZDBYT7oWTmp6fdXxt8IouQJ0gdMiNgKjNMUuSUPQGX+dQ quLZ/9RbaytaMRhBqjE4JMZCrdV32UkSwOIK7URLZ89kDTUE6LI+qjMzAPbiqiTW47v6 XEnQkhfZegeQ/eazpJtSvxZYSj+lOmnWt8FmHp4wvkx3xb/4vQuUHgCGnno67/cdme/4 +jeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=GkV/UHW40ojQINSJGLSD5pRuP03bJ/Yv3/kf3sMMqUY=; b=r4g2DjSPTgiLgGyfLLXdAGHPx4xQF98rwvRUmbBenTnS2Q4jsirGxMaWRLCB0gb9Hc 0EVgczFhOscggxpYFH8QCB3yu9P5vjtdg7XOJe+aMsur18adVLFLAogjh0+gjqhyriK5 cCtOQUx6qI6d01Dyy5NxiHq+qdpbN/GWK5d8b8N89iPs/3uKRc01OPOhKDOU5rKAeAcJ CSWYJucaHGSyQX0MEiLCsR8vG4OAwIgSrzsOdyUv2lG64EVVwZUzgTYO9N3WeOFT1JI0 LmX68iX+gfJqpFQ0u0sJINkGVBftzNrm6UwmHmlpJq6XtUgNRldVrQarK/12eltQq+VR RH5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JWES8rpo; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si4045880edz.447.2021.02.04.17.29.36; Thu, 04 Feb 2021 17:30:00 -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=@google.com header.s=20161025 header.b=JWES8rpo; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239132AbhBDS3U (ORCPT + 99 others); Thu, 4 Feb 2021 13:29:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238908AbhBDSTo (ORCPT ); Thu, 4 Feb 2021 13:19:44 -0500 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7826FC061788 for ; Thu, 4 Feb 2021 10:19:04 -0800 (PST) Received: by mail-pl1-x64a.google.com with SMTP id w22so2714723pll.6 for ; Thu, 04 Feb 2021 10:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=GkV/UHW40ojQINSJGLSD5pRuP03bJ/Yv3/kf3sMMqUY=; b=JWES8rpo4FSC6YxM08B3ne3WSE8mwOoe4YXK22ypOyIhZRXvmJtav1bew84WSu2he1 o5oTUWlif2TQQ6ePgIqh8RMnovA2hkvSifp7ohmwld/5FAlGsUqFjp3umWZQ8ry6Vvgt bmdrqAalBy3fjnn5ZB+2LdoKuiXdQjKnlpuDDp02oSdz1bVUG6r7drR4Y5yczWre7LJN pyuUu7KqqxlZOB/64y6nG0p/VCy3vx40h2+kK6qgiN59kRw34gOs0oPCkvjasFWMVrEi AX/7n9Hhs1w2NoAeUFG84NZxzCXroqpLRvQ/wTdc45/IAh74eK2h+lHZx7lsD9e8/zCU tExQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=GkV/UHW40ojQINSJGLSD5pRuP03bJ/Yv3/kf3sMMqUY=; b=gUVjnYUdk9TvIEgGgdXOw+8X7lIJjr+3SqV0tDxUOZEVmxUzqfw9LCCZvkcLNzOrOS BKkXXPJ9sU3Hmi1pIHSh9AwF85SVrA1GbxkFepiEcZZb/7kZYvye20sQs4aH7i6PYCS6 4ZxseSZY7ns7fKPmcW5QnaZgaIibDd5erOg2uwmrRFOtKHUFFphfO0ex8gKXq8+mVw/q MBvBfLB6HufWONp2E/Qm0v4RLgAmmgglHyuZ9DQv1R8xKv+O10E24BOyGgS7vFEKa4hL WPXroVVwQ6KhzMnFY8tcuNNyfNHZmQy9w1WmGmEZTJpCvlh+fuu+aw5kkAvsUfekRBRt 8sqg== X-Gm-Message-State: AOAM5316cAOWc5yUMR6w5BtjF8CL9bZ7x+faeyM/tSyJzrd+etDTTN3i mAFxyz3qTF84YEC6Jwko2CfLkQ7YGjOw Sender: "brianvv via sendgmr" X-Received: from brianvv.c.googlers.com ([fda3:e722:ac3:10:7f:e700:c0a8:348]) (user=brianvv job=sendgmr) by 2002:a17:90a:3b44:: with SMTP id t4mr64655pjf.1.1612462743645; Thu, 04 Feb 2021 10:19:03 -0800 (PST) Date: Thu, 4 Feb 2021 18:18:39 +0000 In-Reply-To: <20210204181839.558951-1-brianvv@google.com> Message-Id: <20210204181839.558951-2-brianvv@google.com> Mime-Version: 1.0 References: <20210204181839.558951-1-brianvv@google.com> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH net-next 2/2] net: fix building errors on powerpc when CONFIG_RETPOLINE is not set From: Brian Vazquez To: Brian Vazquez , Brian Vazquez , Eric Dumazet , "David S . Miller" Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit fixes the errores reported when building for powerpc: ERROR: modpost: "ip6_dst_check" [vmlinux] is a static EXPORT_SYMBOL ERROR: modpost: "ipv4_dst_check" [vmlinux] is a static EXPORT_SYMBOL ERROR: modpost: "ipv4_mtu" [vmlinux] is a static EXPORT_SYMBOL ERROR: modpost: "ip6_mtu" [vmlinux] is a static EXPORT_SYMBOL Fixes: f67fbeaebdc0 ("net: use indirect call helpers for dst_mtu") Fixes: bbd807dfbf20 ("net: indirect call helpers for ipv4/ipv6 dst_check functions") Reported-by: Stephen Rothwell Signed-off-by: Brian Vazquez --- net/ipv4/route.c | 4 ++-- net/ipv6/route.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 9e6537709794..be31e2446470 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1206,7 +1206,7 @@ INDIRECT_CALLABLE_SCOPE struct dst_entry *ipv4_dst_check(struct dst_entry *dst, return NULL; return dst; } -EXPORT_SYMBOL(ipv4_dst_check); +EXPORT_INDIRECT_CALLABLE(ipv4_dst_check); static void ipv4_send_dest_unreach(struct sk_buff *skb) { @@ -1337,7 +1337,7 @@ INDIRECT_CALLABLE_SCOPE unsigned int ipv4_mtu(const struct dst_entry *dst) return mtu - lwtunnel_headroom(dst->lwtstate, mtu); } -EXPORT_SYMBOL(ipv4_mtu); +EXPORT_INDIRECT_CALLABLE(ipv4_mtu); static void ip_del_fnhe(struct fib_nh_common *nhc, __be32 daddr) { diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8d9e053dc071..0d1784b0d65d 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2644,7 +2644,7 @@ INDIRECT_CALLABLE_SCOPE struct dst_entry *ip6_dst_check(struct dst_entry *dst, return dst_ret; } -EXPORT_SYMBOL(ip6_dst_check); +EXPORT_INDIRECT_CALLABLE(ip6_dst_check); static struct dst_entry *ip6_negative_advice(struct dst_entry *dst) { @@ -3115,7 +3115,7 @@ INDIRECT_CALLABLE_SCOPE unsigned int ip6_mtu(const struct dst_entry *dst) return mtu - lwtunnel_headroom(dst->lwtstate, mtu); } -EXPORT_SYMBOL(ip6_mtu); +EXPORT_INDIRECT_CALLABLE(ip6_mtu); /* MTU selection: * 1. mtu on route is locked - use it -- 2.30.0.365.g02bc693789-goog