diff options
author | Oliver O'Halloran <[email protected]> | 2020-08-04 10:54:05 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-08-25 01:31:33 +1000 |
commit | f6bac19cf65c5be21d14a0c9684c8f560f2096dd (patch) | |
tree | cad696470f32692699817db0899a940a0ae82914 /lib/zstd/entropy_common.c | |
parent | 346427e668163e85cbbe14e4d9a2ddd49df1536c (diff) |
powerpc/powernv/smp: Fix spurious DBG() warning
When building with W=1 we get the following warning:
arch/powerpc/platforms/powernv/smp.c: In function ‘pnv_smp_cpu_kill_self’:
arch/powerpc/platforms/powernv/smp.c:276:16: error: suggest braces around
empty body in an ‘if’ statement [-Werror=empty-body]
276 | cpu, srr1);
| ^
cc1: all warnings being treated as errors
The full context is this block:
if (srr1 && !generic_check_cpu_restart(cpu))
DBG("CPU%d Unexpected exit while offline srr1=%lx!\n",
cpu, srr1);
When building with DEBUG undefined DBG() expands to nothing and GCC emits
the warning due to the lack of braces around an empty statement.
Signed-off-by: Oliver O'Halloran <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/zstd/entropy_common.c')
0 files changed, 0 insertions, 0 deletions