ppc_override_l2cr/ppc_override_l2cr_value/has_l2cache symbol is not used
outside of setup.c, so commit marks it static.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Zucheng Zheng <redacted>
---
arch/powerpc/platforms/powermac/setup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
ppc_override_l2cr/ppc_override_l2cr_value/has_l2cache symbol is not used
outside of setup.c, so commit marks it static.
Reported-by: Hulk Robot <redacted>
Signed-off-by: Zucheng Zheng <redacted>
---
arch/powerpc/platforms/powermac/setup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
With ppc64_defconfig,
CC arch/powerpc/platforms/powermac/setup.o
arch/powerpc/platforms/powermac/setup.c:75:12: error:
'ppc_override_l2cr_value' defined but not used [-Werror=unused-variable]
75 | static int ppc_override_l2cr_value;
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/powermac/setup.c:74:12: error:
'ppc_override_l2cr' defined but not used [-Werror=unused-variable]
74 | static int ppc_override_l2cr;
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:288:
arch/powerpc/platforms/powermac/setup.o] Error 1
You have to move it inside the #ifdef CONFIG_PPC32 block that uses it.
Christophe