summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/module.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-12-04 12:56:58 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-11 02:21:40 +0100
commitad6eb1ec6a590168b0f3add844bdf2b8bd422714 (patch)
tree29685c1e3144efc9d5a6796b7852acf73d9a1c3c /arch/mips/kernel/module.c
parentmips: move build_tlb_refill_handler() prototype (diff)
downloadlinux-ad6eb1ec6a590168b0f3add844bdf2b8bd422714.tar.xz
linux-ad6eb1ec6a590168b0f3add844bdf2b8bd422714.zip
mips: move jump_label_apply_nops() declaration to header
Instead of an extern declaration in the C file with the caller, move it to an appropriate header, avoiding arch/mips/kernel/jump_label.c:93:6: error: no previous prototype for 'jump_label_apply_nops' [-Werror=missing-prototypes] Link: https://lkml.kernel.org/r/20231204115710.2247097-9-arnd@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Stephen Rothwell <sfr@rothwell.id.au> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/mips/kernel/module.c')
-rw-r--r--arch/mips/kernel/module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/module.c b/arch/mips/kernel/module.c
index 0c936cbf20c5..7b2fbaa9cac5 100644
--- a/arch/mips/kernel/module.c
+++ b/arch/mips/kernel/module.c
@@ -20,8 +20,7 @@
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/jump_label.h>
-
-extern void jump_label_apply_nops(struct module *mod);
+#include <asm/jump_label.h>
struct mips_hi16 {
struct mips_hi16 *next;