]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS/Loongson: Fix build warnings about export.h
authorHuacai Chen <chenhuacai@loongson.cn>
Sun, 8 Jun 2025 14:20:10 +0000 (22:20 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 2 Jul 2025 11:31:43 +0000 (13:31 +0200)
After commit a934a57a42f64a4 ("scripts/misc-check: check missing #include
<linux/export.h> when W=1") and 7d95680d64ac8e836c ("scripts/misc-check:
check unnecessary #include <linux/export.h> when W=1"), we get some build
warnings with W=1:

arch/mips/loongson64/setup.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present

So fix these build warnings for MIPS/Loongson.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson64/setup.c

index 257038e18779db160489c66b4fd5d4296aa0c097..b3e590eae952517924ac86b5a75fe8f6840d5b35 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology
  * Author: Fuxin Zhang, zhangfx@lemote.com
  */
-#include <linux/export.h>
 #include <linux/init.h>
 
 #include <asm/bootinfo.h>