From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Heiko Carstens <hca@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
linux-s390@vger.kernel.org
Subject: Re: [PATCH -next] s390/idle: Add missing EXPORT_SYMBOL()
Date: Wed, 17 Jun 2026 18:25:07 +0200 [thread overview]
Message-ID: <ajLJhMC9SDjeSQtR@monoceros> (raw)
In-Reply-To: <20260617145313.3910957-1-hca@linux.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 2039 bytes --]
On Wed, Jun 17, 2026 at 04:53:13PM +0200, Heiko Carstens wrote:
> Uwe Kleine-König reported this build breakage caused by a recent commit
> which provides arch specific kcpustat_field_idle()/kcpustat_field_iowait()
> functions:
>
> ERROR: modpost: "arch_kcpustat_field_idle" [drivers/leds/trigger/ledtrig-activity.ko] undefined!
> ERROR: modpost: "arch_kcpustat_field_iowait" [drivers/leds/trigger/ledtrig-activity.ko] undefined!
>
> Fix this by adding the missing EXPORT_SYMBOL().
Did you consider EXPORT_SYMBOL_GPL() which AFAIK is prefered over the
non-GPL one?
> Fixes: 670e057744e0 ("s390/idle: Provide arch specific kcpustat_field_idle()/kcpustat_field_iowait()")
> Reported-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Closes: https://lore.kernel.org/r/ajKsG0JP6qTssQBX@monoceros
> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
> ---
> arch/s390/kernel/idle.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/s390/kernel/idle.c b/arch/s390/kernel/idle.c
> index 7f7851c001e0..6da8ee22a1d5 100644
> --- a/arch/s390/kernel/idle.c
> +++ b/arch/s390/kernel/idle.c
> @@ -14,6 +14,7 @@
> #include <linux/init.h>
> #include <linux/cpu.h>
> #include <trace/events/power.h>
> +#include <linux/export.h>
> #include <asm/cpu_mf.h>
> #include <asm/cputime.h>
> #include <asm/idle.h>
When I fixed up the reported issue in my local tree, I didn't add that
include, so it seems to be included already implicitly. But I guess
adding that explicitly is a good idea.
> @@ -83,11 +84,13 @@ u64 arch_kcpustat_field_idle(int cpu)
> {
> return arch_cpu_idle_time(cpu, CPUTIME_IDLE, !nr_iowait_cpu(cpu));
> }
> +EXPORT_SYMBOL(arch_kcpustat_field_idle);
>
> u64 arch_kcpustat_field_iowait(int cpu)
> {
> return arch_cpu_idle_time(cpu, CPUTIME_IOWAIT, nr_iowait_cpu(cpu));
> }
> +EXPORT_SYMBOL(arch_kcpustat_field_iowait);
>
> void account_idle_time_irq(void)
> {
Tested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-06-17 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 14:53 [PATCH -next] s390/idle: Add missing EXPORT_SYMBOL() Heiko Carstens
2026-06-17 15:00 ` sashiko-bot
2026-06-17 16:25 ` Uwe Kleine-König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ajLJhMC9SDjeSQtR@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.