Skip to contentSkip to conversation

arm64: asm: setup.h: export common variables

PATCH Applied Anders Roxell 2 participants 2 messages Oct 7, 2021 – Oct 12, 2021 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: asm: setup.h: export common variables

When building the kernel with sparse enabled 'C=1' the following warnings can be seen:

arch/arm64/kernel/setup.c:58:13: warning: symbol '__fdt_pointer' was not declared. Should it be static? arch/arm64/kernel/setup.c:84:25: warning: symbol 'boot_args' was not declared. Should it be static?

Rework so the variables are exported, since these two variable are created and used in setup.c, also used in head.S.

---
 arch/arm64/include/asm/setup.h | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/include/asm/setup.h +6 -0
index d3320618ed14..6437df661700 100644
@@ -8,4 +8,10 @@
 void *get_early_fdt_ptr(void);
 void early_fdt_map(u64 dt_phys);
 
+/*
+ * These two variables are used in the head.S file.
+ */
+extern phys_addr_t __fdt_pointer __initdata;
+extern u64 __cacheline_aligned boot_args[4];
+
 #endif
Signature · 1 line
2.33.0
maintainer Applied
#1 lore raw
Quoted 10 lines · Anders Roxell

When building the kernel with sparse enabled 'C=1' the following warnings can be seen:

arch/arm64/kernel/setup.c:58:13: warning: symbol '__fdt_pointer' was not declared. Should it be static? arch/arm64/kernel/setup.c:84:25: warning: symbol 'boot_args' was not declared. Should it be static?

Rework so the variables are exported, since these two variable are created and used in setup.c, also used in head.S.

[...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: asm: setup.h: export common variables

      https://git.kernel.org/arm64/c/1dfde0892b32

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev