Skip to content

Commit 710c8d6

Browse files
Linu Cherianctmarinas
authored andcommitted
arm64: Declare non global symbols as static
Fix below sparse warnings introduced while adding errata. arch/arm64/kernel/cpu_errata.c:218:25: sparse: warning: symbol 'cavium_erratum_23154_cpus' was not declared. Should it be static? Reported-by: kernel test robot <[email protected]> Signed-off-by: Linu Cherian <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent f41ef4c commit 710c8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/cpu_errata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = {
215215
#endif
216216

217217
#ifdef CONFIG_CAVIUM_ERRATUM_23154
218-
const struct midr_range cavium_erratum_23154_cpus[] = {
218+
static const struct midr_range cavium_erratum_23154_cpus[] = {
219219
MIDR_ALL_VERSIONS(MIDR_THUNDERX),
220220
MIDR_ALL_VERSIONS(MIDR_THUNDERX_81XX),
221221
MIDR_ALL_VERSIONS(MIDR_THUNDERX_83XX),

0 commit comments

Comments
 (0)