Skip to content

Commit a6b2029

Browse files
geertutorvalds
authored andcommitted
m32r: fix 'fix breakage from "m32r: use generic ptrace_resume code"' fallout
Commit acdc0d5 ('m32r: fix breakage from "m32r: use generic ptrace_resume code"') tried to fix a problem in commit e34112e ("m32r: use generic ptrace_resume code") by returning values in a function returning void, causing: arch/m32r/kernel/ptrace.c: In function 'user_enable_single_step': arch/m32r/kernel/ptrace.c:594:3: warning: 'return' with a value, in function returning void [enabled by default] arch/m32r/kernel/ptrace.c:598:3: warning: 'return' with a value, in function returning void [enabled by default] arch/m32r/kernel/ptrace.c:601:3: warning: 'return' with a value, in function returning void [enabled by default] arch/m32r/kernel/ptrace.c:604:2: warning: 'return' with a value, in function returning void [enabled by default] Remove the unneeded return values. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@lst.de> Cc: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f9717f3 commit a6b2029

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎arch/m32r/kernel/ptrace.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,17 +591,16 @@ void user_enable_single_step(struct task_struct *child)
591591

592592
if (access_process_vm(child, pc&~3, &insn, sizeof(insn), 0)
593593
!= sizeof(insn))
594-
return -EIO;
594+
return;
595595

596596
compute_next_pc(insn, pc, &next_pc, child);
597597
if (next_pc & 0x80000000)
598-
return -EIO;
598+
return;
599599

600600
if (embed_debug_trap(child, next_pc))
601-
return -EIO;
601+
return;
602602

603603
invalidate_cache();
604-
return 0;
605604
}
606605

607606
void user_disable_single_step(struct task_struct *child)

0 commit comments

Comments
 (0)