Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp511479ybl; Wed, 11 Dec 2019 23:44:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwSsIwcONW6EcUyitDHN2AaoXnek3L4AVH3X/Hz0ul2iecGj3C0hV7etKh8bt1fhyAYGKmZ X-Received: by 2002:a05:6830:1555:: with SMTP id l21mr6241204otp.41.1576136672792; Wed, 11 Dec 2019 23:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576136672; cv=none; d=google.com; s=arc-20160816; b=uJvFhiX8geN1j4a6Li9goUidITMc8vIMHgmEwxiKlCBRkmAlvXAL+WNEzj6fcHIrWc A+jmD0df9CtuGWAS68H1dBzwa9QMA+whM7dToL+fghdfFDY/JN5yl9qz9PWdNRgEEznr oXjUJcFkVc/gjRQH0T+U9woTwjM0MlqO5+WRuQ7a0tnPHRRtuaMUMGmdhsLK3+EwvLL7 i5TW2vNHDyZ4YfKa6KUIz71JqC7IXhHKm8Z/ijKSn4ny6QyB/an9bvV2cwnWXdXP/HdC vahMIKhaSH2We7qabi22bnBluQJz+Z3EQ/nqq7HY8PKpmmwwgKSomdchf6vK9NQI5OBN iGfQ== 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=jYxRd099Dsy2rLtiJAv53Vqdx+5cG7B/L3QNd2QLeR0=; b=paAgrEQXYWNz1wispFdXtdGNoROe7qKK8kePblVifqnBchewemszZupAt3tasxuN5V 7UnvnRrkYIK1kTAVUzuTDKdW1voarADK8bVyngV+HgjsZXZNFo640+bICZKYbUMP+tCT UkyObv5z33JSTEHEDBv+FPJxoXx/DnojvyWesJIAWcA7J0IJi98LOOcNk941m7VoMnya lSMV39kgcnt9L2ke4P8CXeExfWw/BHtiYxFrcNmt721UUbovv54Sfc0Mxz0UXsLXqEhB zmPcni8bs8YPrPky/8pyj0zT75w0RA2DuHs2kKfhjby8HLsP2GgK0PRRR0LEIUcbe5aK 2wVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si2843097otq.21.2019.12.11.23.44.20; Wed, 11 Dec 2019 23:44:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728177AbfLLHnR (ORCPT + 99 others); Thu, 12 Dec 2019 02:43:17 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36604 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbfLLHnQ (ORCPT ); Thu, 12 Dec 2019 02:43:16 -0500 Received: by mail-ot1-f67.google.com with SMTP id i4so779705otr.3; Wed, 11 Dec 2019 23:43:16 -0800 (PST) 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=jYxRd099Dsy2rLtiJAv53Vqdx+5cG7B/L3QNd2QLeR0=; b=K0LUpbTMxLHdjQH8m1CqETdhPUEgaQh4dR1LxZIoiCVgmgBu63wlPdz25YQKzK8uHv n4rV5xUnB70mSRwNB55b32j9XYebxdLxzr5cu7GC/uNPR/gK7VIg9TfRq65nf4ObXP5C mf8N5sYq560dhfk9HkGrRKluiZ7SFP+xqDuIdRjNvwmMPkt5qCcYcTAgU9P0xLW3JFJ5 QZ19AqqFipvzg2AAzU8LFQEW+d2BmeGKlu1tmrdO4pZcHutoFdYDsQfxpMiq2IUAWv5Z +c9K/yQ+ABZmjqZrV3sN2rUiTi+62vpLLGTL4QG0GtearIgjDy2kl2ixl1Sc7n4nPTkY F/uA== X-Gm-Message-State: APjAAAUSIb7zbwwJatT0hm0P+Ln+s9P0W+HlqalE9rb2QpVJoFqdLvgu 12eagjmIptD017xo1rU4h2PYTuEalcjljYr9HkadaoB2 X-Received: by 2002:a9d:2073:: with SMTP id n106mr6612378ota.145.1576136595771; Wed, 11 Dec 2019 23:43:15 -0800 (PST) MIME-Version: 1.0 References: <87wob2clos.wl-kuninori.morimoto.gx@renesas.com> In-Reply-To: <87wob2clos.wl-kuninori.morimoto.gx@renesas.com> From: Geert Uytterhoeven Date: Thu, 12 Dec 2019 08:43:04 +0100 Message-ID: Subject: Re: [PATCH] sh: add missing EXPORT_SYMBOL() for __delay To: Kuninori Morimoto Cc: Yoshinori Sato , Rich Felker , 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 Hi Morimoto-san, On Thu, Dec 12, 2019 at 3:38 AM 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 Thanks for your patch! > --- 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 believe the correct fix is make drivers/net/phy/mdio-cavium.c use one of [nmu]delay() instead. Cfr. https://lore.kernel.org/lkml/CAMuHMdUERaoHLNKi03zCuYi7NevgBFjXrV=pt0Yy=HOeRiL25Q@mail.gmail.com/ 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