Commit 2bd73d85 authored by Yongzhen Zhang's avatar Yongzhen Zhang Committed by 张永震
Browse files

MIPS: BCM47XX: Declare early_tlb_init() static

mainline inclusion
from mainline-v6.10-rc1
commit d18419cd66835c29ac732624324b99b43f4cff1c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB5RH3
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d18419cd6683



--------------------------------

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: default avatarYongzhen Zhang <zhangyongzhen@kylinos.cn>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 66f4e4de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);