Commit ad6eb1ec authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Andrew Morton

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.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6fb04df9
......@@ -15,6 +15,9 @@
#include <linux/types.h>
#include <asm/isa-rev.h>
struct module;
extern void jump_label_apply_nops(struct module *mod);
#define JUMP_LABEL_NOP_SIZE 4
#ifdef CONFIG_64BIT
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment