summaryrefslogtreecommitdiff
path: root/arch/mips/loongson64
diff options
context:
space:
mode:
authorYanteng Si <siyanteng@loongson.cn>2021-01-07 06:06:45 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-01-07 19:12:51 +0300
commit3b31bb6bb5495f4f38e4d106f95df8be12463f48 (patch)
treee2847358348d71b22137e3341d629683ec0789a8 /arch/mips/loongson64
parentfdd85e04df3fdd55bb7f32786890fdfb200c40f0 (diff)
downloadlinux-3b31bb6bb5495f4f38e4d106f95df8be12463f48.tar.xz
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/loongson64')
-rw-r--r--arch/mips/loongson64/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/mips/loongson64/init.c b/arch/mips/loongson64/init.c
index 87a4569972ae..cfa788bca871 100644
--- a/arch/mips/loongson64/init.c
+++ b/arch/mips/loongson64/init.c
@@ -25,7 +25,6 @@ u32 node_id_offset;
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);