Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp817746pxb; Wed, 3 Feb 2021 20:02:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgFhdClYhPYT+kIdMf+r1peheHEtG9Jue8yANozBqBBy74OCPdXaufJ/Z6EQCH24yAhvyX X-Received: by 2002:a17:906:1a0c:: with SMTP id i12mr6006836ejf.276.1612411360194; Wed, 03 Feb 2021 20:02:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612411360; cv=none; d=google.com; s=arc-20160816; b=glrrsMkZV1sZp9mWGh+LYNEmzeehm0OZ1hk25FEKi93Ew/4BzZCvS4HrCR0bB0n61x mwj0g/H2uVUueGDfB2qWxTlxgIJyPiwIoVtmfXNiNm4PFz+yvmpWw5sjnnnXj+PYpibt D9tk+sR1dgmcKJdg7R9g7d9x/JxnODirBzmgDnSqmwiNbam7mu6i638Z8NPHmtPOrqLt 8ffCJBwRK99fVsGnpYWe+VS8DcXFEQNN7VkzRUVuyPNTVDhwMSZV5Al4p7S4DQW6G55X 0VfOrL/oCfw0k3XV4occDF2hPKdNvlnXyC9IdL3m2HXZYSfAxjYy9JNzm/zXrRmAjC6X Gx1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DTbQuqDgftJHyEjgUZ53qqE2GLvug2RthYORKONmJnA=; b=BupIuFeKva9fG5I/5y+e0cVw8utzL5YOwdx9HbF5QkayBz6Eju8ulFPWK2FwFbPvhf KHtXzp9x2sEdN10avbVphkB4lBIXxztODyqI3enykaF8NVZEh2SIYkYUO3y7INMZo8sl byR2m13JlOtSa6DbIBzzjsJSFI8cwI8s70k20qumh7+7a35YHRckwgZ+VZHFGzBCTABs kyXhYmwAZ0D3lgrwbZ5MzaiLHlrq/3N//M5OGOIWxsAdi1KTdS86xWYA/qn4WoYWASw4 dcYY6wvRbptMs6DpNtByqhmGB02qiCWjTmoYNK2An34DUGhn41dSmppBOOJS3dSDOiIP +QDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fKFmn6G4; 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 de20si2515033ejc.753.2021.02.03.20.02.14; Wed, 03 Feb 2021 20:02:40 -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=fKFmn6G4; 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 S231367AbhBDDxB (ORCPT + 99 others); Wed, 3 Feb 2021 22:53:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbhBDDxA (ORCPT ); Wed, 3 Feb 2021 22:53:00 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A79BCC0613D6 for ; Wed, 3 Feb 2021 19:52:20 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id i71so1836391ybg.7 for ; Wed, 03 Feb 2021 19:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DTbQuqDgftJHyEjgUZ53qqE2GLvug2RthYORKONmJnA=; b=fKFmn6G4Gfcvpduh4jqVWeOKN+SFpsRhlVPOm6PDL8uJ4neFU13Qr37PqAiAKwknxr M3/axZFZaSNRvW2AoAkWw/pdu2JAEIy4U7Cxs8WuHXtv+Ket5yS9QE3QuoUUxEEIP0Mu ux7PvimGsRNvNxfYt4qnv7p5IiAJ/Kd80haGbuh6BfCH5eTRhj0peYdPSoGw3+HHsot3 sVzeQN2gMxpwCLZo1Du+HlAQxmJjmyDkxbnJkPccM4bugHS+NKzUhYztHvBvZw4zQqFH 6BtW4naZohotxE+Vk8xzPj25pwFuGtN38BsgadZn4vM0Pdgu1QXFpDONGGI+Uh4RpZma 4bjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DTbQuqDgftJHyEjgUZ53qqE2GLvug2RthYORKONmJnA=; b=i6OYjOdkuwt4aXrU5ELpZcV/J5OEsVhLdgVTd/+O8g//iLgCzUJYtcFCzvK5A+jae4 ywQPwz98bsHbSCyNqHvnUNgl7Y4fZgpk7C0CNndhEhuqWRNsHq9CtAAGq9e8eBy19ly1 87t1tD/dBoou9g1onw9blsouDD2dNDXAvtwBrhEWbla6G76OZQpHhPtShTGrDfPT9QK6 +W05H3sVWgRkurrRJbfHhja3kljb+GTU4LXHNRj8F0Xg6j42PD6kGaNeNnwiQuYvJ61r 2iyHwz4+/yAyu2kNNVPfyHuuLxbK4hTaQmACRsz4KckwcB9MEOcjhGez58Apzpj0PNiV x8Lg== X-Gm-Message-State: AOAM532W2PrEu7wmgfCoCkV6YFCQE+uJgHiZB7jwb/B8g7EZ+Yl8Xcbv ioCBNT+D9fdx/clZnTyfx6yik0F5WrcvJYtrK6W1rQ== X-Received: by 2002:a25:244:: with SMTP id 65mr9660395ybc.511.1612410739666; Wed, 03 Feb 2021 19:52:19 -0800 (PST) MIME-Version: 1.0 References: <20210204123331.21e4598b@canb.auug.org.au> In-Reply-To: <20210204123331.21e4598b@canb.auug.org.au> From: Brian Vazquez Date: Wed, 3 Feb 2021 19:52:08 -0800 Message-ID: Subject: Re: linux-next: build failure after merge of the net-next tree To: Stephen Rothwell Cc: David Miller , Networking , Jakub Kicinski , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, thanks for the report. I'm having trouble trying to compile for ppc, but I believe this should fix the problem, could you test this patch, please? Thanks! diff --git a/include/linux/indirect_call_wrapper.h b/include/linux/indirect_call_wrapper.h index 54c02c84906a..077f96be65c6 100644 --- a/include/linux/indirect_call_wrapper.h +++ b/include/linux/indirect_call_wrapper.h @@ -36,6 +36,7 @@ #define INDIRECT_CALLABLE_DECLARE(f) f #define INDIRECT_CALLABLE_SCOPE +#define INDIRECT_CALLABLE_EXPORT(f) EXPORT_SYMBOL(f) #else #define INDIRECT_CALL_1(f, f1, ...) f(__VA_ARGS__) @@ -44,6 +45,7 @@ #define INDIRECT_CALL_4(f, f4, f3, f2, f1, ...) f(__VA_ARGS__) #define INDIRECT_CALLABLE_DECLARE(f) #define INDIRECT_CALLABLE_SCOPE static +#define INDIRECT_CALLABLE_EXPORT(f) #endif /* diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 9e6537709794..9dd8ff3887b7 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); +INDIRECT_CALLABLE_EXPORT(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); +INDIRECT_CALLABLE_EXPORT(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 f447f82e6819..75d6a0db1fa6 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); +INDIRECT_CALLABLE_EXPORT(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); +INDIRECT_CALLABLE_EXPORT(ip6_mtu); /* MTU selection: * 1. mtu on route is locked - use it On Wed, Feb 3, 2021 at 5:33 PM Stephen Rothwell wrote: > > Hi all, > > After merging the net-next tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > 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 > > Caused by commits > > f67fbeaebdc0 ("net: use indirect call helpers for dst_mtu") > bbd807dfbf20 ("net: indirect call helpers for ipv4/ipv6 dst_check functions") > > I have used the net-next tree from next-20210203 fot today. > > -- > Cheers, > Stephen Rothwell