MIPS: BCM47XX: Declare early_tlb_init() static
authorYongzhen Zhang <zhangyongzhen@kylinos.cn>
Fri, 15 Mar 2024 02:52:35 +0000 (10:52 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Apr 2024 08:21:20 +0000 (10:21 +0200)
early_tlb_init() was local to file but not declared static,
leading to error:

arch/mips/bcm47xx/prom.c:126:6: error: no previous prototype for ‘early_tlb_init’ [-Werror=missing-prototypes]
  126 | void early_tlb_init(void)
      |      ^~~~~~~~~~~~~~

Signed-off-by: Yongzhen Zhang <zhangyongzhen@kylinos.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/bcm47xx/prom.c

index 7344a5eb990ecaa2b0a8f3f8a0b8a52c9f284246..58fb7c2dc3b8a06074485880bb4eec5790a414fd 100644 (file)
@@ -124,7 +124,7 @@ void __init prom_init(void)
 /* Stripped version of tlb_init, with the call to build_tlb_refill_handler
  * dropped. Calling it at this stage causes a hang.
  */
-void early_tlb_init(void)
+static void early_tlb_init(void)
 {
        write_c0_pagemask(PM_DEFAULT_MASK);
        write_c0_wired(0);