linux-next: build warning after merge of the tip tree
Subsystems (2)
Hi all,
After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
WARNING: modpost: EXPORT symbol "asm_load_gs_index" [vmlinux] version generation failed, symbol will not be versioned. Is "asm_load_gs_index" prototyped in <asm/asm-prototypes.h>?
Introduced by commit
ae53fa187030 ("x86/gsseg: Move load_gs_index() to its own new header file")
Signature · 2 lines
Cheers, Stephen Rothwell
PATCH 1/1 x86/gsseg: Add the new <asm/gsseg.h> header to <asm/asm-prototypes.h>
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) produced this warning:WARNING: modpost: EXPORT symbol "
asm_load_gs_index" [vmlinux] version generation failed, symbol will not be versioned. Is "asm_load_gs_index" prototyped in <asm/asm-prototypes.h>?Introduced by commit
ae53fa187030("x86/gsseg: Moveload_gs_index()to its own new header file")
Yeah - the new header moved the asm_load_gs_index() prototype out of the list of includes in <asm/asm-prototypes.h> - needs to be added explicitly. Patch below should solve this.
Thanks,
Ingo
===========>
From: Ingo Molnar <[email protected]>
Date: Fri, 13 Jan 2023 13:43:20 +0100
Subject: [PATCH] x86/gsseg: Add the new <asm/gsseg.h> header to <asm/asm-prototypes.h>
Module build needs to be able to pick up the C prototype:
WARNING: modpost: EXPORT symbol "asm_load_gs_index" [vmlinux] version generation failed, symbol will not be versioned. Is "asm_load_gs_index" prototyped in <asm/asm-prototypes.h>?
--- arch/x86/include/asm/asm-prototypes.h | 1 + 1 file changed, 1 insertion(+)
arch/x86/include/asm/asm-prototypes.h +1 -0
@@ -12,6 +12,7 @@#include <asm/special_insns.h> #include <asm/preempt.h> #include <asm/asm.h> +#include <asm/gsseg.h> #ifndef CONFIG_X86_CMPXCHG64 extern void cmpxchg8b_emu (void );