Skip to contentSkip to conversation

MIPS: kernel: include probes-common.h header in branch.c

PATCH Applied Pujin Shi 2 participants 2 messages Sep 21, 2020 MIPS

lore
Share & tools
lore

Pujin Shi

author
#0 lore raw

PATCH v2 1/1 MIPS: kernel: include probes-common.h header in branch.c

arch/mips/kernel/branch.c:876:5: error: no previous prototype for '__insn_is_compact_branch' [-Werror=missing-prototypes]

---
 arch/mips/kernel/branch.c | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/kernel/branch.c +2 -0
index fb3e203698ea..0216ff24c392 100644
@@ -20,6 +20,8 @@
 #include <asm/ptrace.h>
 #include <linux/uaccess.h>
 
+#include "probes-common.h"
+
 /*
  * Calculate and return exception PC in case of branch delay slot
  * for microMIPS and MIPS16e. It does not clear the ISA mode bit.
Signature · 1 line
2.18.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Pujin Shi

arch/mips/kernel/branch.c:876:5: error: no previous prototype for '__insn_is_compact_branch' [-Werror=missing-prototypes]

---
 arch/mips/kernel/branch.c | 2 ++
 1 file changed, 2 insertions(+)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]