MIPS: init: move externs to header file
authorYanteng Si <siyanteng@loongson.cn>
Thu, 7 Jan 2021 03:06:45 +0000 (11:06 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 7 Jan 2021 16:12:51 +0000 (17:12 +0100)
commit3b31bb6bb5495f4f38e4d106f95df8be12463f48
treee2847358348d71b22137e3341d629683ec0789a8
parentfdd85e04df3fdd55bb7f32786890fdfb200c40f0
MIPS: init: move externs to header file

This commit fixes the following checkpatch warnings:

    WARNING: externs should be avoided in .c files

    This is a warning for placing declarations in a ".c" file.
    This fix removes the declaration in ".c" and adds it to
    the common header file.

Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/traps.h
arch/mips/loongson2ef/common/init.c
arch/mips/loongson64/init.c
arch/mips/mti-malta/malta-init.c
arch/mips/pistachio/init.c