linux-stable/arch/powerpc/platforms/powermac
Chen Lifu 59dc2d94bc powerpc/powermac: Fix symbol not declared warnings
1. ppc_override_l2cr and ppc_override_l2cr_value are only used in
   l2cr_init() function, remove them and used *l2cr directly.
2. has_l2cache is not used outside of the file, so mark it static and
   do not initialise statics to 0.

Fixes the following warnings:

  arch/powerpc/platforms/powermac/setup.c:73:5: warning: symbol
  'ppc_override_l2cr' was not declared. Should it be static?
  arch/powerpc/platforms/powermac/setup.c:74:5: warning: symbol
  'ppc_override_l2cr_value' was not declared. Should it be static?
  arch/powerpc/platforms/powermac/setup.c:75:5: warning: symbol
  'has_l2cache' was not declared. Should it be static?

Signed-off-by: Chen Lifu <chenlifu@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Unwrap printk string]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221103070122.340773-1-chenlifu@huawei.com
2022-11-24 23:31:50 +11:00
..
backlight.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
bootx_init.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
cache.S powerpc/mm: Switch obsolete dssall to .long 2021-12-23 22:35:13 +11:00
feature.c powerpc/powermac/feature: Add missing of_node_put() 2022-09-05 17:30:29 +10:00
Kconfig powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
low_i2c.c powerpc/powermac/low_i2c: Add missing of_node_put() in kw_i2c_probe() 2022-09-05 17:30:29 +10:00
Makefile kbuild: remove cc-option test of -fno-stack-protector 2020-07-07 11:13:10 +09:00
nvram.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pci.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pfunc_base.c powerpc/powermac/pfunc_base: Add missing of_node_put() in macio_gpio_init_one() 2022-09-05 17:30:29 +10:00
pfunc_core.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pic.c powerpc/powermac: constify device_node in of_irq_parse_oldworld() 2022-05-22 15:59:54 +10:00
pmac.h powerpc/powermac: add missing g5_phy_disable_cpu1() declaration 2022-05-22 15:59:54 +10:00
setup.c powerpc/powermac: Fix symbol not declared warnings 2022-11-24 23:31:50 +11:00
sleep.S powerpc/powermac: Fix low_sleep_handler with CONFIG_VMAP_STACK 2020-12-08 21:41:03 +11:00
smp.c powerpc/powermac: Add missing of_node_put() in smp_core99_setup() 2022-09-05 17:30:24 +10:00
time.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
udbg_adb.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
udbg_scc.c powerpc/powermac/udbg_scc: Add missing of_node_put()s in udbg_scc_init() 2022-09-05 17:30:30 +10:00