diff options
author | Yu Kuai <yukuai3@huawei.com> | 2021-04-08 09:18:01 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-05-04 19:37:43 +1000 |
commit | 2b6ff203cd45ba3018fe84affdac93ef07e1db3d (patch) | |
tree | 840c7fff0e96cd031bdf8a2800d1ef35332fe96c /arch | |
parent | b396dd3d800c1374973c8fb901cb7e3a1439c8b6 (diff) | |
download | linux-stable-2b6ff203cd45ba3018fe84affdac93ef07e1db3d.tar.gz linux-stable-2b6ff203cd45ba3018fe84affdac93ef07e1db3d.tar.bz2 linux-stable-2b6ff203cd45ba3018fe84affdac93ef07e1db3d.zip |
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 <yukuai3@huawei.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210408011801.557004-3-yukuai3@huawei.com
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/btext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 40b386b96754..5ff1b5e805f6 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); |