WARNING: modpost: EXPORT symbol "stack_depot_save_flags" [vmlinux] version generation failed, symbol will not be versioned.
kernel test robot
build bottree: 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/[email protected]/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/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
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>?
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 12 lines · kernel test robot
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/[email protected]/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/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 6 lines
All warnings (new ones prefixed by >>, old ones prefixed by <<):
Quoted 1 line
Quoted 1 line
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>?Quoted 1 line
Quoted 1 line
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.
Quoted 24 lines · Peter Zijlstra
Quoted 12 lines · kernel test robot
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/[email protected]/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/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/Quoted 6 lines
All warnings (new ones prefixed by >>, old ones prefixed by <<):
Quoted 1 line
Quoted 1 line
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>?Quoted 1 line
Quoted 1 line
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.
Quoted 6 lines
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.
Quoted 12 lines · Peter Zijlstra
Quoted 7 lines
commit:
ee771bab5add646af678f7a40b6272c21a0964d7[34/39] stackdepot: Enable context analysis All warnings (new ones prefixed by >>, old ones prefixed by <<):Quoted 1 line
Quoted 1 line
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>?Quoted 1 line
Quoted 1 line
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.
Quoted 6 lines
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?
Quoted 20 lines · Heiko Carstens
Quoted 12 lines · Peter Zijlstra
Quoted 7 lines
commit:
ee771bab5add646af678f7a40b6272c21a0964d7[34/39] stackdepot: Enable context analysis All warnings (new ones prefixed by >>, old ones prefixed by <<):Quoted 1 line
Quoted 1 line
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>?Quoted 1 line
Quoted 1 line
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.
Quoted 6 lines
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.
Quoted 8 lines
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_SYMBOLstatements within files where context analysis has been enabled.When enabling
CONFIG_MODVERSIONSI 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
Marco Elver
maintainerQuoted 30 lines · Nathan Chancellor
Quoted 20 lines · Heiko Carstens
Quoted 12 lines · Peter Zijlstra
Quoted 7 lines
commit:
ee771bab5add646af678f7a40b6272c21a0964d7[34/39] stackdepot: Enable context analysis All warnings (new ones prefixed by >>, old ones prefixed by <<):Quoted 1 line
Quoted 1 line
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>?Quoted 1 line
Quoted 1 line
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.
Quoted 6 lines
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.
Quoted 8 lines
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_SYMBOLstatements within files where context analysis has been enabled.When enabling
CONFIG_MODVERSIONSI see this also for x86 builds.I assume you cannot see this error pattern for s390 builds with context analysis disabled?
Quoted 7 lines
Something about the context analysis makes genksyms fall over, running it manually on
kernel/sched/core.iwith '-w' to show warnings reveals many new "syntax error" instances. I don't see any warnings when using gendwarfksyms. Maybe it iscontext_lock_struct, as that is the first error I see in the list:
include/linux/spinlock_types_raw.h:14: syntax error
This works:
include/linux/compiler-context-analysis.h +1 -1
@@ -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__).
Quoted 1 line · Marco Elver
This works:
Ah duh :)
Quoted 11 lines
include/linux/compiler-context-analysis.h +1
-1@@ -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
Quoted 11 lines · Marco Elver
This works:
include/linux/compiler-context-analysis.h +1
-1@@ -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__)
Quoted 2 lines
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.
[tip: locking/core] compiler-context-analysys: Fix CONFIG_MODVERSION
In reply to Marco ElverThe following commit has been merged into the locking/core branch of tip:
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 4d26d4a158f37cb53b22a23b4dc6c4e5bfa1369e Gitweb: https://git.kernel.org/tip/4d26d4a158f37cb53b22a23b4dc6c4e5bfa1369e Author: Marco Elver <[email protected]> AuthorDate: Wed, 07 Jan 2026 23:35:49 +01:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Thu, 08 Jan 2026 11:21:57 +01:00
compiler-context-analysys: Fix CONFIG_MODVERSION
The robot reported CONFIG_MODVERSION fails; which Nathan described as so:
Quoted 7 lines
Something about the context analysis makes genksyms fall over, running it manually on
kernel/sched/core.iwith '-w' to show warnings reveals many new "syntax error" instances. I don't see any warnings when using gendwarfksyms. Maybe it iscontext_lock_struct, as that is the first error I see in the list:
include/linux/spinlock_types_raw.h:14: syntax error
--- include/linux/compiler-context-analysis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler-context-analysis.h +1 -1
@@ -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__)/* * These attributes define new context lock (Clang: capability) types.