* [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
@ 2025-12-22 14:11 kernel test robot
2026-01-05 15:35 ` Peter Zijlstra
0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2025-12-22 14:11 UTC (permalink / raw)
To: Marco Elver; +Cc: llvm, oe-kbuild-all, Peter Zijlstra
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head: 77b4ebc9e43b02f3c50dab48963d969964ea83ef
commit: ee771bab5add646af678f7a40b6272c21a0964d7 [34/39] stackdepot: Enable context analysis
config: s390-defconfig (https://download.01.org/0day-ci/archive/20251222/202512222219.F6EkVNmQ-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 185f5fd5ce4c65116ca8cf6df467a682ef090499)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251222/202512222219.F6EkVNmQ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512222219.F6EkVNmQ-lkp@intel.com/
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
Is "stack_depot_save_flags" prototyped in <asm/asm-prototypes.h>?
>> WARNING: modpost: EXPORT symbol "stack_depot_save" [vmlinux] version generation failed, symbol will not be versioned.
Is "stack_depot_save" prototyped in <asm/asm-prototypes.h>?
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2025-12-22 14:11 [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned kernel test robot
@ 2026-01-05 15:35 ` Peter Zijlstra
2026-01-07 11:39 ` Heiko Carstens
2026-01-07 11:46 ` Heiko Carstens
0 siblings, 2 replies; 8+ messages in thread
From: Peter Zijlstra @ 2026-01-05 15:35 UTC (permalink / raw)
To: kernel test robot, hca; +Cc: Marco Elver, llvm, oe-kbuild-all
On Mon, Dec 22, 2025 at 10:11:10PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
> head: 77b4ebc9e43b02f3c50dab48963d969964ea83ef
> commit: ee771bab5add646af678f7a40b6272c21a0964d7 [34/39] stackdepot: Enable context analysis
> config: s390-defconfig (https://download.01.org/0day-ci/archive/20251222/202512222219.F6EkVNmQ-lkp@intel.com/config)
> compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 185f5fd5ce4c65116ca8cf6df467a682ef090499)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251222/202512222219.F6EkVNmQ-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202512222219.F6EkVNmQ-lkp@intel.com/
>
> All warnings (new ones prefixed by >>, old ones prefixed by <<):
>
> >> WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
> Is "stack_depot_save_flags" prototyped in <asm/asm-prototypes.h>?
> >> WARNING: modpost: EXPORT symbol "stack_depot_save" [vmlinux] version generation failed, symbol will not be versioned.
> Is "stack_depot_save" prototyped in <asm/asm-prototypes.h>?
Heiko, I'm seeing these warnings, and I can reproduce in a local build.
But I have to note that its just one more of an already existing string
of similar failures.
I don't see anything like this on x86, not have I had robot reports for
other architectures. As such, I'm considering this a pre-existing s390
issue.
Please let me know if this is something you want me to look at
nevertheless.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2026-01-05 15:35 ` Peter Zijlstra
@ 2026-01-07 11:39 ` Heiko Carstens
2026-01-07 11:46 ` Heiko Carstens
1 sibling, 0 replies; 8+ messages in thread
From: Heiko Carstens @ 2026-01-07 11:39 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: kernel test robot, Marco Elver, llvm, oe-kbuild-all
On Mon, Jan 05, 2026 at 04:35:20PM +0100, Peter Zijlstra wrote:
> On Mon, Dec 22, 2025 at 10:11:10PM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
> > head: 77b4ebc9e43b02f3c50dab48963d969964ea83ef
> > commit: ee771bab5add646af678f7a40b6272c21a0964d7 [34/39] stackdepot: Enable context analysis
> > config: s390-defconfig (https://download.01.org/0day-ci/archive/20251222/202512222219.F6EkVNmQ-lkp@intel.com/config)
> > compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 185f5fd5ce4c65116ca8cf6df467a682ef090499)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251222/202512222219.F6EkVNmQ-lkp@intel.com/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202512222219.F6EkVNmQ-lkp@intel.com/
> >
> > All warnings (new ones prefixed by >>, old ones prefixed by <<):
> >
> > >> WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
> > Is "stack_depot_save_flags" prototyped in <asm/asm-prototypes.h>?
> > >> WARNING: modpost: EXPORT symbol "stack_depot_save" [vmlinux] version generation failed, symbol will not be versioned.
> > Is "stack_depot_save" prototyped in <asm/asm-prototypes.h>?
>
> Heiko, I'm seeing these warnings, and I can reproduce in a local build.
> But I have to note that its just one more of an already existing string
> of similar failures.
>
> I don't see anything like this on x86, not have I had robot reports for
> other architectures. As such, I'm considering this a pre-existing s390
> issue.
>
> Please let me know if this is something you want me to look at
> nevertheless.
This seems to be an architecture independent problem.
When I enable CONFIG_MODVERSIONS I see this on x86 too.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2026-01-05 15:35 ` Peter Zijlstra
2026-01-07 11:39 ` Heiko Carstens
@ 2026-01-07 11:46 ` Heiko Carstens
2026-01-07 20:45 ` Nathan Chancellor
1 sibling, 1 reply; 8+ messages in thread
From: Heiko Carstens @ 2026-01-07 11:46 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: kernel test robot, Marco Elver, llvm, oe-kbuild-all
On Mon, Jan 05, 2026 at 04:35:20PM +0100, Peter Zijlstra wrote:
> > commit: ee771bab5add646af678f7a40b6272c21a0964d7 [34/39] stackdepot: Enable context analysis
> > All warnings (new ones prefixed by >>, old ones prefixed by <<):
> >
> > >> WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
> > Is "stack_depot_save_flags" prototyped in <asm/asm-prototypes.h>?
> > >> WARNING: modpost: EXPORT symbol "stack_depot_save" [vmlinux] version generation failed, symbol will not be versioned.
> > Is "stack_depot_save" prototyped in <asm/asm-prototypes.h>?
>
> Heiko, I'm seeing these warnings, and I can reproduce in a local build.
> But I have to note that its just one more of an already existing string
> of similar failures.
>
> I don't see anything like this on x86, not have I had robot reports for
> other architectures. As such, I'm considering this a pre-existing s390
> issue.
>
> Please let me know if this is something you want me to look at
> nevertheless.
Sorry, to be more precise: I haven't seen anything like this before on s390.
All other occurences are also new and come with EXPORT_SYMBOL statements
within files where context analysis has been enabled.
When enabling CONFIG_MODVERSIONS I see this also for x86 builds.
I assume you cannot see this error pattern for s390 builds with
context analysis disabled?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2026-01-07 11:46 ` Heiko Carstens
@ 2026-01-07 20:45 ` Nathan Chancellor
2026-01-07 22:35 ` Marco Elver
0 siblings, 1 reply; 8+ messages in thread
From: Nathan Chancellor @ 2026-01-07 20:45 UTC (permalink / raw)
To: Heiko Carstens
Cc: Peter Zijlstra, kernel test robot, Marco Elver, llvm,
oe-kbuild-all
On Wed, Jan 07, 2026 at 12:46:08PM +0100, Heiko Carstens wrote:
> On Mon, Jan 05, 2026 at 04:35:20PM +0100, Peter Zijlstra wrote:
> > > commit: ee771bab5add646af678f7a40b6272c21a0964d7 [34/39] stackdepot: Enable context analysis
> > > All warnings (new ones prefixed by >>, old ones prefixed by <<):
> > >
> > > >> WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
> > > Is "stack_depot_save_flags" prototyped in <asm/asm-prototypes.h>?
> > > >> WARNING: modpost: EXPORT symbol "stack_depot_save" [vmlinux] version generation failed, symbol will not be versioned.
> > > Is "stack_depot_save" prototyped in <asm/asm-prototypes.h>?
> >
> > Heiko, I'm seeing these warnings, and I can reproduce in a local build.
> > But I have to note that its just one more of an already existing string
> > of similar failures.
> >
> > I don't see anything like this on x86, not have I had robot reports for
> > other architectures. As such, I'm considering this a pre-existing s390
> > issue.
> >
> > Please let me know if this is something you want me to look at
> > nevertheless.
>
> Sorry, to be more precise: I haven't seen anything like this before on s390.
> All other occurences are also new and come with EXPORT_SYMBOL statements
> within files where context analysis has been enabled.
>
> When enabling CONFIG_MODVERSIONS I see this also for x86 builds.
>
> I assume you cannot see this error pattern for s390 builds with
> context analysis disabled?
Something about the context analysis makes genksyms fall over, running
it manually on kernel/sched/core.i with '-w' to show warnings reveals
many new "syntax error" instances. I don't see any warnings when using
gendwarfksyms. Maybe it is context_lock_struct, as that is the first
error I see in the list:
include/linux/spinlock_types_raw.h:14: syntax error
Cheers,
Nathan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2026-01-07 20:45 ` Nathan Chancellor
@ 2026-01-07 22:35 ` Marco Elver
2026-01-07 22:56 ` Nathan Chancellor
2026-01-08 7:51 ` Peter Zijlstra
0 siblings, 2 replies; 8+ messages in thread
From: Marco Elver @ 2026-01-07 22:35 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Heiko Carstens, Peter Zijlstra, kernel test robot, llvm,
oe-kbuild-all
On Wed, Jan 07, 2026 at 01:45PM -0700, Nathan Chancellor wrote:
> On Wed, Jan 07, 2026 at 12:46:08PM +0100, Heiko Carstens wrote:
> > On Mon, Jan 05, 2026 at 04:35:20PM +0100, Peter Zijlstra wrote:
> > > > commit: ee771bab5add646af678f7a40b6272c21a0964d7 [34/39] stackdepot: Enable context analysis
> > > > All warnings (new ones prefixed by >>, old ones prefixed by <<):
> > > >
> > > > >> WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
> > > > Is "stack_depot_save_flags" prototyped in <asm/asm-prototypes.h>?
> > > > >> WARNING: modpost: EXPORT symbol "stack_depot_save" [vmlinux] version generation failed, symbol will not be versioned.
> > > > Is "stack_depot_save" prototyped in <asm/asm-prototypes.h>?
> > >
> > > Heiko, I'm seeing these warnings, and I can reproduce in a local build.
> > > But I have to note that its just one more of an already existing string
> > > of similar failures.
> > >
> > > I don't see anything like this on x86, not have I had robot reports for
> > > other architectures. As such, I'm considering this a pre-existing s390
> > > issue.
> > >
> > > Please let me know if this is something you want me to look at
> > > nevertheless.
> >
> > Sorry, to be more precise: I haven't seen anything like this before on s390.
> > All other occurences are also new and come with EXPORT_SYMBOL statements
> > within files where context analysis has been enabled.
> >
> > When enabling CONFIG_MODVERSIONS I see this also for x86 builds.
> >
> > I assume you cannot see this error pattern for s390 builds with
> > context analysis disabled?
>
> Something about the context analysis makes genksyms fall over, running
> it manually on kernel/sched/core.i with '-w' to show warnings reveals
> many new "syntax error" instances. I don't see any warnings when using
> gendwarfksyms. Maybe it is context_lock_struct, as that is the first
> error I see in the list:
>
> include/linux/spinlock_types_raw.h:14: syntax error
This works:
--- a/include/linux/compiler-context-analysis.h
+++ b/include/linux/compiler-context-analysis.h
@@ -6,7 +6,7 @@
#ifndef _LINUX_COMPILER_CONTEXT_ANALYSIS_H
#define _LINUX_COMPILER_CONTEXT_ANALYSIS_H
-#if defined(WARN_CONTEXT_ANALYSIS) && !defined(__CHECKER__)
+#if defined(WARN_CONTEXT_ANALYSIS) && !defined(__CHECKER__) && !defined(__GENKSYMS__)
I guess the genksyms parser just can't deal with some of the syntax
(just like __CHECKER__).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2026-01-07 22:35 ` Marco Elver
@ 2026-01-07 22:56 ` Nathan Chancellor
2026-01-08 7:51 ` Peter Zijlstra
1 sibling, 0 replies; 8+ messages in thread
From: Nathan Chancellor @ 2026-01-07 22:56 UTC (permalink / raw)
To: Marco Elver
Cc: Heiko Carstens, Peter Zijlstra, kernel test robot, llvm,
oe-kbuild-all
On Wed, Jan 07, 2026 at 11:35:49PM +0100, Marco Elver wrote:
> This works:
Ah duh :)
> --- a/include/linux/compiler-context-analysis.h
> +++ b/include/linux/compiler-context-analysis.h
> @@ -6,7 +6,7 @@
> #ifndef _LINUX_COMPILER_CONTEXT_ANALYSIS_H
> #define _LINUX_COMPILER_CONTEXT_ANALYSIS_H
>
> -#if defined(WARN_CONTEXT_ANALYSIS) && !defined(__CHECKER__)
> +#if defined(WARN_CONTEXT_ANALYSIS) && !defined(__CHECKER__) && !defined(__GENKSYMS__)
>
> I guess the genksyms parser just can't deal with some of the syntax
> (just like __CHECKER__).
Right. Not to mention that these macros should have no bearing on the
ABI stability for the sake of module versioning so there is no point to
consider them during genksyms (if I understand correctly).
Cheers,
Nathan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
2026-01-07 22:35 ` Marco Elver
2026-01-07 22:56 ` Nathan Chancellor
@ 2026-01-08 7:51 ` Peter Zijlstra
1 sibling, 0 replies; 8+ messages in thread
From: Peter Zijlstra @ 2026-01-08 7:51 UTC (permalink / raw)
To: Marco Elver
Cc: Nathan Chancellor, Heiko Carstens, kernel test robot, llvm,
oe-kbuild-all
On Wed, Jan 07, 2026 at 11:35:49PM +0100, Marco Elver wrote:
> This works:
>
> --- a/include/linux/compiler-context-analysis.h
> +++ b/include/linux/compiler-context-analysis.h
> @@ -6,7 +6,7 @@
> #ifndef _LINUX_COMPILER_CONTEXT_ANALYSIS_H
> #define _LINUX_COMPILER_CONTEXT_ANALYSIS_H
>
> -#if defined(WARN_CONTEXT_ANALYSIS) && !defined(__CHECKER__)
> +#if defined(WARN_CONTEXT_ANALYSIS) && !defined(__CHECKER__) && !defined(__GENKSYMS__)
>
> I guess the genksyms parser just can't deal with some of the syntax
> (just like __CHECKER__).
Oh excellent, I'll go stuff it in.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-01-08 7:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-22 14:11 [peterz-queue:locking/core 34/39] WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned kernel test robot
2026-01-05 15:35 ` Peter Zijlstra
2026-01-07 11:39 ` Heiko Carstens
2026-01-07 11:46 ` Heiko Carstens
2026-01-07 20:45 ` Nathan Chancellor
2026-01-07 22:35 ` Marco Elver
2026-01-07 22:56 ` Nathan Chancellor
2026-01-08 7:51 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox