[PATCH 2/9] ARM: fix missing include of <asm/insn.h> in arch/arm/kernel/insn.c

Ben Dooks ben.dooks at codethink.co.uk
Fri Jun 17 08:05:06 PDT 2016


Fix the warning by including <asm/insn.h> for the declaration
of __arm_gen_branch().

arm/kernel/insn.c:56:1: warning: symbol '__arm_gen_branch' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
---
Cc: Russell King <linux at armlinux.org.uk>
Cc: linux-arm-kernel at lists.infradead.org
---
 arch/arm/kernel/insn.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/insn.c b/arch/arm/kernel/insn.c
index b760340..5438934 100644
--- a/arch/arm/kernel/insn.c
+++ b/arch/arm/kernel/insn.c
@@ -1,6 +1,7 @@
 #include <linux/bug.h>
 #include <linux/kernel.h>
 #include <asm/opcodes.h>
+#include <asm/insn.h>
 
 static unsigned long
 __arm_gen_branch_thumb2(unsigned long pc, unsigned long addr, bool link)
-- 
2.8.1




More information about the linux-arm-kernel mailing list