Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp906495ybh; Wed, 22 Jul 2020 16:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzulfcXHtod7yr3SzUP3sTbrMIHtU1LZzzvn6kEAA8ba8bqzTYYvcTFLS6GAwrUFlzq2Qx2 X-Received: by 2002:a17:906:3889:: with SMTP id q9mr2024093ejd.318.1595462014401; Wed, 22 Jul 2020 16:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595462014; cv=none; d=google.com; s=arc-20160816; b=lnoR4OZgmdfEMoQDipTc7qjN7ELjKWDY60Y0wTmoVttg79umYOVgI1QvH1LqCGxqG+ FUJhk5HZaFXsCQIilC/atDposg/t9MwVf3ZSOXeZG3yQF9PsjTB0olP+X/JkkxLLdFiC dfVmzDb1dsQYhKR8qxhHaNDpiEzTbv7c2XP4RMMEb+IBwD19DZj4ilLYWYcuDIi9QAUp RIMFZked+d8PHef6OzI1GxkpXXv8C4R8FUdn6ScEWsjv1/KobiX2CMvkkfTv8ElecnZ6 4T+EHvf98QmULSb9qlUrnG+Jkrp7d/g6D/upAiMLtrQFsJXzDu6sGuOUOPEIX4Fcf/j7 pu0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=B5mk9djHDrhZQjRnYy8xg8m6WI9FXyZZZHr/dT2BIYU=; b=w/I+9C85LyDlkj/2gxHOVHAF55OkuIboYRX+mMK5FqeArDjIb0W7gbQ/OdcW3Xach8 gZHVEICe40BvsdjAubF43ZEsN7yR5RQSI1q2fWAts3BqwbPd7EZ3MwAt1h9hlNPYgaUe aHPTccjvy2Hyy6JmTWNMmCaA5borbsCij91xcWt2ipq4wM6TRt/o7+0NBfuEVr6m0tnb 5ziCFTf1DjgQo9Y8PStc4xfWoiKOgtLDCaHx6kNWSZMXly+F7IyAYKEy3of9+16EQOSK Z35bLAmPTB4QtekTVpoIcNsA1h/O1RDO/fkrsLYJIc5ex+5s99EVtaG4HSQVaYkpLM/m 3S+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=jKEmnc6q; 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 j12si903874ejc.99.2020.07.22.16.53.11; Wed, 22 Jul 2020 16:53:34 -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=fail header.i=@gmail.com header.s=20161025 header.b=jKEmnc6q; 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 S1733032AbgGVXxB (ORCPT + 99 others); Wed, 22 Jul 2020 19:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728914AbgGVXxB (ORCPT ); Wed, 22 Jul 2020 19:53:01 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB82BC0619DC; Wed, 22 Jul 2020 16:53:00 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id u5so2081917pfn.7; Wed, 22 Jul 2020 16:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=B5mk9djHDrhZQjRnYy8xg8m6WI9FXyZZZHr/dT2BIYU=; b=jKEmnc6qdbr+pSxMexbN5/0ydyb9jmmb/CtnBEhEA6/eA8yB2kplXzQeuADuMg7/87 Ek6zng6kNQoOoiYeCj5Y1eQQTI8+BCpDgzHZZIVD1sEcEt/YC06S2tGS9cngJLnPoNu9 xSugmrcuZoAoK06D4TFrGc8dOGA40S6+mWjILrpBVH2qYi+7d5EUq1a4xrc8AktEXwAp o4Zu4cDUf/xx9pPZSdtRmbliiw2e+4mo3HMh30a433vZkkoQQwThsF9QVadXKym+qBmc OJ66r0NoqGT8zzwUvDMMgtsyEz5NirAh4WIyE6fJ9PTz13Wjy4I9M5sE68SwNJe5WE0W qeeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=B5mk9djHDrhZQjRnYy8xg8m6WI9FXyZZZHr/dT2BIYU=; b=kmDf24++PSJNnXHpqz83F6g83CEVp/d963MiIqCA4IBpFDohNP3U46xqRY18l28b9F 6HKHbKpTyhwkrF1tklMOucJaI0/nwTWxuG4oW8EWguZCb25sdBsaUR+iaDUEFMV9y3tg WIEHYq7OBIfZmyt1BYbDUFdj2SiZw31e0+sf8UIB0YJTOZg/RNTVuQWClvzsrOU4ce8Y m7UDH+3j1cg/yjlkvFAJtuckz4MSfUEwN/qosU9FvRenOipWgzsfxYfkiXxuHzUrwkEa tdRljoLe/OKccsfypJqhZuU0JCq60FEoHG3nhzmtCLmqophtl+AbtJEFcsmrFzFaIZUz ysJg== X-Gm-Message-State: AOAM532cAEs4Tv/ahKrsjip2iskbAjR8Zxe6FaSbO3wH15leq/ErZ8gc bxboWOGiyg2TgKUD6LpGj7VvhWyi X-Received: by 2002:a62:8ccb:: with SMTP id m194mr1870232pfd.36.1595461980003; Wed, 22 Jul 2020 16:53:00 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d9sm698919pfd.133.2020.07.22.16.52.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jul 2020 16:52:58 -0700 (PDT) Subject: Re: [PATCH] sh: add missing EXPORT_SYMBOL() for __delay To: Rich Felker Cc: Kuninori Morimoto , Yoshinori Sato , Andrew Morton , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: <87wob2clos.wl-kuninori.morimoto.gx@renesas.com> <20200722023840.GA55317@roeck-us.net> <20200722225239.GX14669@brightrain.aerifal.cx> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROI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SLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Wed, 22 Jul 2020 16:52:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200722225239.GX14669@brightrain.aerifal.cx> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rich, 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 ? Thanks, Guenter