* [PATCH] nmi_backtrace: fix trigger_allbutcpu_cpu_backtrace() stub definition
@ 2023-08-07 7:10 Arnd Bergmann
2023-08-07 7:22 ` Thorsten Leemhuis
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-08-07 7:10 UTC (permalink / raw)
To: Douglas Anderson, Michal Hocko, Andrew Morton
Cc: Arnd Bergmann, Petr Mladek, Tom Rix, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
The prototype for the extern declaration was changed, but the one for
the empty stub is now missing an unused argument:
kernel/watchdog.c: In function 'watchdog_timer_fn':
kernel/watchdog.c:521:4: error: too many arguments to function 'trigger_allbutcpu_cpu_backtrace'
521 | trigger_allbutcpu_cpu_backtrace(smp_processor_id());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/watchdog.c:17:
include/linux/nmi.h:193:20: note: declared here
193 | static inline bool trigger_allbutcpu_cpu_backtrace(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixes: 0ca1d340a231e ("nmi_backtrace: allow excluding an arbitrary CPU")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
include/linux/nmi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/nmi.h b/include/linux/nmi.h
index 7cf7801856a1b..e92e378df000f 100644
--- a/include/linux/nmi.h
+++ b/include/linux/nmi.h
@@ -190,7 +190,7 @@ static inline bool trigger_all_cpu_backtrace(void)
{
return false;
}
-static inline bool trigger_allbutcpu_cpu_backtrace(void)
+static inline bool trigger_allbutcpu_cpu_backtrace(int exclude_cpu)
{
return false;
}
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nmi_backtrace: fix trigger_allbutcpu_cpu_backtrace() stub definition
2023-08-07 7:10 [PATCH] nmi_backtrace: fix trigger_allbutcpu_cpu_backtrace() stub definition Arnd Bergmann
@ 2023-08-07 7:22 ` Thorsten Leemhuis
0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Leemhuis @ 2023-08-07 7:22 UTC (permalink / raw)
To: Arnd Bergmann, Douglas Anderson, Michal Hocko, Andrew Morton
Cc: Arnd Bergmann, Petr Mladek, Tom Rix, linux-kernel
On 07.08.23 09:10, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The prototype for the extern declaration was changed, but the one for
> the empty stub is now missing an unused argument:
>
> kernel/watchdog.c: In function 'watchdog_timer_fn':
> kernel/watchdog.c:521:4: error: too many arguments to function 'trigger_allbutcpu_cpu_backtrace'
> 521 | trigger_allbutcpu_cpu_backtrace(smp_processor_id());
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from kernel/watchdog.c:17:
> include/linux/nmi.h:193:20: note: declared here
> 193 | static inline bool trigger_allbutcpu_cpu_backtrace(void)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thx for this, ran into the same problem while building -next today:
https://copr-be.cloud.fedoraproject.org/results/@kernel-vanilla/next/fedora-rawhide-aarch64/06247267-next-next-all/build.log.gz
FWIW, it seems Andrew had noticed it and a fix ready:
https://lore.kernel.org/all/20230805100033.37f1df3bf720a7c21ad8980d@linux-foundation.org/
Maybe it was just not committed or something?
Ciao, Thorsten
> Fixes: 0ca1d340a231e ("nmi_backtrace: allow excluding an arbitrary CPU")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> include/linux/nmi.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/nmi.h b/include/linux/nmi.h
> index 7cf7801856a1b..e92e378df000f 100644
> --- a/include/linux/nmi.h
> +++ b/include/linux/nmi.h
> @@ -190,7 +190,7 @@ static inline bool trigger_all_cpu_backtrace(void)
> {
> return false;
> }
> -static inline bool trigger_allbutcpu_cpu_backtrace(void)
> +static inline bool trigger_allbutcpu_cpu_backtrace(int exclude_cpu)
> {
> return false;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-07 7:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 7:10 [PATCH] nmi_backtrace: fix trigger_allbutcpu_cpu_backtrace() stub definition Arnd Bergmann
2023-08-07 7:22 ` Thorsten Leemhuis
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.