summary refs log tree commit diff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorBalamuruhan S <bala24@linux.ibm.com>2020-06-26 15:21:58 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-23 17:43:14 +1000
commite93ad65e3611b06288efdf0cfd76c012df3feec1 (patch)
treeaa734c793095ae7cc99de0b80d05c92d96eb7e39 /arch/powerpc/include
parent68a180a44c29d7e918ae7d3c18a01b0751d1c22f (diff)
downloadlinux-e93ad65e3611b06288efdf0cfd76c012df3feec1.tar.gz
powerpc/test_emulate_step: Move extern declaration to sstep.h
fix checkpatch.pl warnings by moving extern declaration from source
file to headerfile.

Signed-off-by: Balamuruhan S <bala24@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200626095158.1031507-5-bala24@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/sstep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/sstep.h b/arch/powerpc/include/asm/sstep.h
index 325975b4ef30..c8e37ef060c1 100644
--- a/arch/powerpc/include/asm/sstep.h
+++ b/arch/powerpc/include/asm/sstep.h
@@ -108,6 +108,8 @@ enum instruction_type {
 #define GET_PREFIX_RA(i)	(((i) >> 16) & 0x1f)
 #define GET_PREFIX_R(i)		((i) & (1ul << 20))
 
+extern s32 patch__exec_instr;
+
 struct instruction_op {
 	int type;
 	int reg;