Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp515681ybl; Wed, 11 Dec 2019 23:50:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyERmz+VCXqAHO6+l/RO0mmeDEJ6rIyOVRN0szpIfhZXn0kEuZtlnyLYJZlRRyPzFhdWCHq X-Received: by 2002:a9d:22a8:: with SMTP id y37mr6552334ota.359.1576137056570; Wed, 11 Dec 2019 23:50:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576137056; cv=none; d=google.com; s=arc-20160816; b=K1yvIdhMrV/+HShCO/kY3IVYBptCiqOxqx5g8QAx5UFcfMjpyBGkeQbkL5eYuiS/Xd nQyrCljU4aTy9BoiNMGTCQxF0sHDonB8hCuaLFMBykg9JFtCBTHUfZLGJ6XL32HC2gg5 1yhNbbcY93qD5X1WurCYyIBHT00H5+Z+zEnK960HkWMJVCDaiGCmYI8jkU7YRZ7o8QWM B40kcEtoC3XMRWeY2Z8Y9qmwH8onu/EZTBmoeYApFw8YN70vfPs2fx4O+HrmDQdrlQFd XN0IeZtuNhLPwOxdwponWKmxdEoAv6t6EkbBXBULJco4OAEKvioTcQfKDDPdg9esBeQN 8QwA== 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=/i/kQrCR6DRe6WEYPeoiMdcrOD+Sk8SKui3HhgY5J0s=; b=jd8O5H7aCOq2StBzp6OTvzx53dK1OSRKBhbdGic8JhGEblj5WUuiueWO2DtewuC6WJ g4fb/QhBQMISSw7BHVHeLr5MAP4G3bbbpY40OrhK385HVxL+FljvdKVJiMk0WDRi+0CZ aavPsXt+3LFywT/cz2PaXe+etc2zPSdbkgrz2N5RxP7MpgjWXzqIgLx+5iJv0pndtoUI 5JaR4NZKg3JEtDNKLW5OXq3SRVa+YGeizK3AYiLBYfiV4bV5Lb7/thkMnh00HarI2RvZ F+HnCrEe1bbzHZVoppD49n0KeYB932eGxvNPIUNICAxrYL8RksBfrXfNsQAXH+StPRo8 QzHg== 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 t20si2644730otr.64.2019.12.11.23.50.43; Wed, 11 Dec 2019 23:50:56 -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 S1728140AbfLLHuK (ORCPT + 99 others); Thu, 12 Dec 2019 02:50:10 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44400 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbfLLHuK (ORCPT ); Thu, 12 Dec 2019 02:50:10 -0500 Received: by mail-ot1-f68.google.com with SMTP id x3so763523oto.11; Wed, 11 Dec 2019 23:50:09 -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=/i/kQrCR6DRe6WEYPeoiMdcrOD+Sk8SKui3HhgY5J0s=; b=mfksngvisLsxX/EDeyFMVuYwSYwFdD87SHWUX0H5nPuTWvyGv1bStpCx5CDkO/Idey evfxi9XPRJZzqMVwD/5qx5Ujja34U8miEkiLXuW51pwlq3j2AzYvbdps/2SFyor581Td iiUnUaACoZM05KSKE1VInn+gDsFkJZRqODHuZApVvjedLG8vNUppTs5NfsAx0nVEqMUa Vxc7ADtU12FjyL03Ms7qCYEYtIVxCukzF53RR93v/7rFLbb11C3dWxwVnKWmSuiWYfyP COvduXzUfMdGCq6XBGnxCExyD0T3zEmQijZo1ggCIExKC9nsJUcJK/MGPbPENGKMClWA a7mw== X-Gm-Message-State: APjAAAVOuyKt/0/OijIehqspNQK63uf+kNA8GzCw34Ki+SYXq1AeaxkG 0ZBbXQLa9e0XX/ngITrsiijqY4CV4TB9sFgud2A= X-Received: by 2002:a9d:2073:: with SMTP id n106mr6639922ota.145.1576137009080; Wed, 11 Dec 2019 23:50:09 -0800 (PST) MIME-Version: 1.0 References: <87v9qmcloc.wl-kuninori.morimoto.gx@renesas.com> In-Reply-To: <87v9qmcloc.wl-kuninori.morimoto.gx@renesas.com> From: Geert Uytterhoeven Date: Thu, 12 Dec 2019 08:49:58 +0100 Message-ID: Subject: Re: [PATCH] sh: add missing DECLARE_EXPORT() for __ashiftrt_r4_2x 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:39 AM Kuninori Morimoto wrote: > From: Kuninori Morimoto > > __ashiftrt_r4_2x is used from kernel module. > We need DECLARE_EXPORT(), otherwise we will get compile error. > > ERROR: "__ashiftrt_r4_25" [drivers/iio/pressure/bmp280.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/iio/dac/ad5764.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/iio/accel/mma7660.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/iio/accel/dmard06.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/iio/accel/bma220_spi.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/crypto/hisilicon/sec/hisi_sec.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/rtc/rtc-x1205.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/rtc/rtc-pcf85063.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/rtc/rtc-pcf2123.ko] undefined! > ERROR: "__ashiftrt_r4_25" [drivers/input/tablet/gtco.ko] undefined! > ERROR: "__ashiftrt_r4_26" [drivers/input/mouse/psmouse.ko] undefined! > ERROR: "__ashiftrt_r4_28" [drivers/input/mouse/psmouse.ko] undefined! > ERROR: "__ashiftrt_r4_28" [drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko] undefined! > ERROR: "__ashiftrt_r4_28" [fs/udf/udf.ko] undefined! > > Signed-off-by: Kuninori Morimoto Thanks for your patch! Reviewed-by: Geert Uytterhoeven > --- a/arch/sh/kernel/sh_ksyms_32.c > +++ b/arch/sh/kernel/sh_ksyms_32.c > @@ -53,8 +53,14 @@ DECLARE_EXPORT(__ashiftrt_r4_21); > DECLARE_EXPORT(__ashiftrt_r4_22); > DECLARE_EXPORT(__ashiftrt_r4_23); > DECLARE_EXPORT(__ashiftrt_r4_24); > +DECLARE_EXPORT(__ashiftrt_r4_25); > +DECLARE_EXPORT(__ashiftrt_r4_26); > DECLARE_EXPORT(__ashiftrt_r4_27); > +DECLARE_EXPORT(__ashiftrt_r4_28); > +DECLARE_EXPORT(__ashiftrt_r4_29); > DECLARE_EXPORT(__ashiftrt_r4_30); > +DECLARE_EXPORT(__ashiftrt_r4_31); > +DECLARE_EXPORT(__ashiftrt_r4_32); > DECLARE_EXPORT(__movstr); > DECLARE_EXPORT(__movstrSI8); > DECLARE_EXPORT(__movstrSI12); Wouldn't it make sense to just add all of them (__ashiftrt_r4_[0-32])? 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