Skip to content

Commit 1dfde08

Browse files
roxellwilldeacon
authored andcommitted
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. Signed-off-by: Anders Roxell <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent f5b650f commit 1dfde08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arm64/include/asm/setup.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@
88
void *get_early_fdt_ptr(void);
99
void early_fdt_map(u64 dt_phys);
1010

11+
/*
12+
* These two variables are used in the head.S file.
13+
*/
14+
extern phys_addr_t __fdt_pointer __initdata;
15+
extern u64 __cacheline_aligned boot_args[4];
16+
1117
#endif

0 commit comments

Comments
 (0)