summaryrefslogtreecommitdiff
path: root/arch/mips/loongson2ef
diff options
context:
space:
mode:
authorYanteng Si <siyanteng@loongson.cn>2021-01-07 11:06:45 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-01-07 17:12:51 +0100
commit3b31bb6bb5495f4f38e4d106f95df8be12463f48 (patch)
treee2847358348d71b22137e3341d629683ec0789a8 /arch/mips/loongson2ef
parentfdd85e04df3fdd55bb7f32786890fdfb200c40f0 (diff)
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>
Diffstat (limited to 'arch/mips/loongson2ef')
-rw-r--r--arch/mips/loongson2ef/common/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/mips/loongson2ef/common/init.c b/arch/mips/loongson2ef/common/init.c
index 088aa56d4ed1..7797359359e4 100644
--- a/arch/mips/loongson2ef/common/init.c
+++ b/arch/mips/loongson2ef/common/init.c
@@ -19,7 +19,6 @@ unsigned long __maybe_unused _loongson_addrwincfg_base;
static void __init mips_nmi_setup(void)
{
void *base;
- extern char except_vec_nmi[];
base = (void *)(CAC_BASE + 0x380);
memcpy(base, except_vec_nmi, 0x80);