Skip to content

Commit e93ad65

Browse files
balamuruhansmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 68a180a commit e93ad65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/powerpc/include/asm/sstep.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ enum instruction_type {
108108
#define GET_PREFIX_RA(i) (((i) >> 16) & 0x1f)
109109
#define GET_PREFIX_R(i) ((i) & (1ul << 20))
110110

111+
extern s32 patch__exec_instr;
112+
111113
struct instruction_op {
112114
int type;
113115
int reg;

arch/powerpc/lib/test_emulate_step.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,6 @@ static int __init emulate_compute_instr(struct pt_regs *regs,
11501150
bool negative)
11511151
{
11521152
int analysed;
1153-
extern s32 patch__exec_instr;
11541153
struct instruction_op op;
11551154

11561155
if (!regs || !ppc_inst_val(instr))
@@ -1176,7 +1175,6 @@ static int __init execute_compute_instr(struct pt_regs *regs,
11761175
struct ppc_inst instr)
11771176
{
11781177
extern int exec_instr(struct pt_regs *regs);
1179-
extern s32 patch__exec_instr;
11801178

11811179
if (!regs || !ppc_inst_val(instr))
11821180
return -EINVAL;

0 commit comments

Comments
 (0)