Re: [PATCH] powerpc/ptrace: fix empty-body warning

2018-12-18 Thread Michael Ellerman
Hi Mathieu, Mathieu Malaterre writes: > In commit a225f1567405 ("powerpc/ptrace: replace ptrace_report_syscall() > with a tracehook call") an empty body if(); was added. > > Replace ; with {} to remove a warning (treated as error) reported by gcc > using W=1: > > arch/powerpc/kernel/ptrace.c: I

[PATCH] powerpc/ptrace: fix empty-body warning

2018-12-18 Thread Mathieu Malaterre
In commit a225f1567405 ("powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call") an empty body if(); was added. Replace ; with {} to remove a warning (treated as error) reported by gcc using W=1: arch/powerpc/kernel/ptrace.c: In function ‘do_syscall_trace_enter’: arch/powerpc/