From: Yu Kuai Date: Thu, 8 Apr 2021 01:18:01 +0000 (+0800) Subject: powerpc: make 'boot_text_mapped' static X-Git-Tag: v5.19-rc1~107^2~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b6ff203cd45ba3018fe84affdac93ef07e1db3d;p=thirdparty%2Fkernel%2Flinux.git powerpc: make 'boot_text_mapped' static The sparse tool complains as follow: arch/powerpc/kernel/btext.c:48:5: warning: symbol 'boot_text_mapped' was not declared. Should it be static? This symbol is not used outside of btext.c, so this commit make it static. Signed-off-by: Yu Kuai Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210408011801.557004-3-yukuai3@huawei.com --- diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 40b386b967546..5ff1b5e805f6f 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -45,7 +45,7 @@ unsigned long disp_BAT[2] __initdata = {0, 0}; static unsigned char vga_font[cmapsz]; -int boot_text_mapped __force_data = 0; +static int boot_text_mapped __force_data; extern void rmci_on(void); extern void rmci_off(void);