Linux s390 Architecture development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Heiko Carstens" <hca@linux.ibm.com>
Cc: linux-s390@vger.kernel.org,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>
Subject: Re: [PATCH -next] s390/idle: Add missing EXPORT_SYMBOL()
Date: Wed, 17 Jun 2026 15:00:59 +0000	[thread overview]
Message-ID: <20260617150100.5EE991F00A3E@smtp.kernel.org> (raw)
In-Reply-To: <20260617145313.3910957-1-hca@linux.ibm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Export License Discrepancy: arch_kcpustat_field_idle and arch_kcpustat_field_iowait are exported via EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL.
--

commit 53dd63a70164da468386d3191eb1e7e24af1b440
Author: Heiko Carstens <hca@linux.ibm.com>

s390/idle: Add missing EXPORT_SYMBOL()
    
This commit fixes a build breakage for the ledtrig-activity module by
exporting the newly introduced arch_kcpustat_field_idle and
arch_kcpustat_field_iowait functions.

Closes: https://lore.kernel.org/r/ajKsG0JP6qTssQBX@monoceros

> diff --git a/arch/s390/kernel/idle.c b/arch/s390/kernel/idle.c
> index 7f7851c001e0a..6da8ee22a1d53 100644
> --- a/arch/s390/kernel/idle.c
> +++ b/arch/s390/kernel/idle.c

[ ... ]

> @@ -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);

[Severity: Low]
Should this use EXPORT_SYMBOL_GPL() instead? The generic implementations of 
kcpustat_field_idle() in kernel/sched/cputime.c are exported as GPL-only.
Using a standard export here circumvents the GPL symbol restriction imposed
by the core scheduler.

>  
>  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);

[Severity: Low]
Similarly, does this need to be EXPORT_SYMBOL_GPL() to match the generic
kcpustat_field_iowait() counterpart?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260617145313.3910957-1-hca@linux.ibm.com?part=1

  reply	other threads:[~2026-06-17 15:01 UTC|newest]

Thread overview: 4+ 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 [this message]
2026-06-17 16:25 ` Uwe Kleine-König
2026-06-18  4:53   ` Heiko Carstens

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=20260617150100.5EE991F00A3E@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agordeev@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox