]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: asm: setup.h: export common variables
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 7 Oct 2021 19:56:01 +0000 (21:56 +0200)
committerWill Deacon <will@kernel.org>
Tue, 12 Oct 2021 08:22:33 +0000 (09:22 +0100)
commit7e283541f5d3b2910ec0cd108093cfe9e67c0906
treedb362d18406c8a2ac9c69bb1dcb1fbf79c497a6f
parenta0e33c6f2347f190c824a3741bd00ad959d7e27a
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 <anders.roxell@linaro.org>
Link: https://lore.kernel.org/r/20211007195601.677474-1-anders.roxell@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/setup.h