Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1932248pxa; Mon, 3 Aug 2020 03:02:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoMSqQcLbsAiViOXTVnNU24bwlDp07eIp+ku8TmX8qXtlxNLK1V/T079NoLR3MEvudiyjQ X-Received: by 2002:a05:6402:b4b:: with SMTP id bx11mr14500597edb.286.1596448949153; Mon, 03 Aug 2020 03:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596448949; cv=none; d=google.com; s=arc-20160816; b=eYMErvXZ523WoQBFAmMRTkW3h+jnXrRIm873ye2W/be0qeoy58Y2+C+KRbjZ98yTtr jojx0KQTyfq/PlZ7SzAjOTM0I/herV3HrbHija1Uvn/ieTluD0sEeFZ5hu4nUK4gMyyy pMGH2CVkkcxNxZq3ly85j6WvmvVI4iQ8NIh+h3XYJyhby0YYXhzSUZUWT9UHB83o36W1 Zkqvauxbo/bzVsRHJIr/wiOUZnldZ68SyswlI8FPPrUStSwDYa5dSeIhUiHMtJrn6leE uozhYJGZvzTmUiHk2GikOwgjP2AyhskC+5ct/K0JQjBISzmBY1ck0EIbdIzlSFAh5XxA qSfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=YRL/NSrOTXGW5tVFZP1w9ujyG9ApelIKXaN1/erg484=; b=xqGjvXem9t3fhNY7iPdfMXn89HThRHuZqPKclVIACDlWyJSAZ5H4kBx1LGpLQW+iai PqEit2mGVOBVbTls/S/Wh1P3w6GUZjaZ8YIn06vrpqnPtkemn9Dvi8j7DO+lIYY2XxH+ TUPAOYESnQ0gVdRECdIN4mMmv57oPw3fR/q0nw9w7WeAorEV6XGXML5FPF9YXuVdK0vT gh4A9uZC/2dX3es/ZcAeBQScf+5iWc/j1xS13XMKHt4aDPzPiMLvHVQuLRorcG6JCifS KCAoHdfFN5UyqYhrgXqAQGBZPrUnLJJ4+UOJKRwZAvZT4GkDR9WdKhGYsOOtjn2e784u u5tg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si4257552edv.224.2020.08.03.03.02.06; Mon, 03 Aug 2020 03:02:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726300AbgHCKBm (ORCPT + 99 others); Mon, 3 Aug 2020 06:01:42 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:46964 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgHCKBl (ORCPT ); Mon, 3 Aug 2020 06:01:41 -0400 Received: by mail-ot1-f66.google.com with SMTP id v6so16699365ota.13; Mon, 03 Aug 2020 03:01:41 -0700 (PDT) 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=YRL/NSrOTXGW5tVFZP1w9ujyG9ApelIKXaN1/erg484=; b=dhZFlWmSf+Uwo+vFIlvnlPA/fV85bK0xUZDSngLpTNfrQNAuI2SGAky9rt1PX8Js4A UJyMjXx/qGlYhtdgpAu/p4NES2wcCiYw2AkN70TbwUiuMrukzhyrz+zCe7iK/dO5ZcQp sd3rAZvjFQDyPA0a6B1eB/Kic93w0Y/AsRmWTp+x+D6OdreAAre6ugKbUm8S8eoa71yx 7Ed/AOo+QKzqUzZVv7UXeWNgkyRGouTnIaZGVZ3qNoK2DqDaTKoFID++oqeYs7TL42O1 41jTG+eivjAOMyf7/uFhMHUM04wLVl2waKWpuf/WZXe3fzPzYRXkLn+qPl/YH5wxTjKW 9qig== X-Gm-Message-State: AOAM530w5nk3Vx6E2T5rmFjf/k2p1eybUYJzdfvkJwAbdWDuIovJJ2QM /uxVGxxjlv5KC/qxn5+gfpaSzOrXskWWVE8QE9WUs98e X-Received: by 2002:a05:6830:1b79:: with SMTP id d25mr12244586ote.107.1596448900646; Mon, 03 Aug 2020 03:01:40 -0700 (PDT) MIME-Version: 1.0 References: <87wob2clos.wl-kuninori.morimoto.gx@renesas.com> <20200722023840.GA55317@roeck-us.net> <20200722225239.GX14669@brightrain.aerifal.cx> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 3 Aug 2020 12:01:29 +0200 Message-ID: Subject: Re: [PATCH] sh: add missing EXPORT_SYMBOL() for __delay To: Guenter Roeck Cc: Rich Felker , Kuninori Morimoto , Yoshinori Sato , Andrew Morton , Linux-sh list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 23, 2020 at 1:53 AM Guenter Roeck wrote: > On 7/22/20 3:52 PM, Rich Felker wrote: > > On Tue, Jul 21, 2020 at 07:38:40PM -0700, Guenter Roeck wrote: > >> On Thu, Dec 12, 2019 at 11:38:43AM +0900, Kuninori Morimoto wrote: > >>> From: Kuninori Morimoto > >>> > >>> __delay() is used from kernel module. > >>> We need EXPORT_SYMBOL(), otherwise we will get compile error. > >>> > >>> ERROR: "__delay" [drivers/net/phy/mdio-cavium.ko] undefined! > >>> > >>> Signed-off-by: Kuninori Morimoto > >> > >> I must admit that this patch completely baffles me. __delay was > >> already exported, only elsewhere in the file. With this patch > >> in place, it is exported twice, and all sh builds in -next fail > >> with > >> > >> In file included from include/linux/linkage.h:7, > >> from arch/sh/include/asm/bug.h:5, > >> from include/linux/bug.h:5, > >> from include/linux/thread_info.h:12, > >> from include/asm-generic/current.h:5, > >> from ./arch/sh/include/generated/asm/current.h:1, > >> from include/linux/sched.h:12, > >> from arch/sh/lib/delay.c:8: > >> include/linux/export.h:67:36: error: redefinition of '__ksymtab___delay' > >> > >> Guenter > >> > >>> --- > >>> arch/sh/lib/delay.c | 1 + > >>> 1 file changed, 1 insertion(+) > >>> > >>> diff --git a/arch/sh/lib/delay.c b/arch/sh/lib/delay.c > >>> index dad8e6a..540e670 100644 > >>> --- a/arch/sh/lib/delay.c > >>> +++ b/arch/sh/lib/delay.c > >>> @@ -29,6 +29,7 @@ void __delay(unsigned long loops) > >>> : "0" (loops) > >>> : "t"); > >>> } > >>> +EXPORT_SYMBOL(__delay); > >>> > >>> inline void __const_udelay(unsigned long xloops) > >>> { > > > > I presently have a revert of this commit in queue for next. If it's > > sufficiently breaking (and especially if there are other regressions > > that need to be fixed, see the pmd_free thing) I could try to get it > > in for 5.8 still but that's getting a bit late. > > > > The patch in mainline is ok. It appears that it has been applied > again in -next. > > "git log --oneline v5.7.. arch/sh/lib/delay.c" on top of next-20200721 > reports: > > ee0e4f15dfd4 (origin/akpm) sh: add missing EXPORT_SYMBOL() for __delay > d1f56f318d23 sh: add missing EXPORT_SYMBOL() for __delay > > Maybe it just needs to be dropped from the akpm tree in -next ? IMHO all of them should be dropped/reverted. __delay is an internal implementation detail, not to be used by drivers. See also include/asm-generic/delay.h: /* Undefined functions to get compile-time errors */ ... extern void __delay(unsigned long loops); Cfr. '[PATCH] Revert "sh: add missing EXPORT_SYMBOL() for __delay"' https://lore.kernel.org/lkml/20200608080636.27862-1-geert+renesas@glider.be/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds