diff options
| author | Arnd Bergmann <[email protected]> | 2021-03-22 11:35:40 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-22 17:05:15 +0100 |
| commit | 946e2f007fc23a1f759a401db2beb7d49e143843 (patch) | |
| tree | b80c42d308eec209f4be82271c603b457724efe9 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 3eb631e321c74de84b23466701d708dfa7556c6e (diff) | |
staging/nvec:: avoid Wempty-body warning
This driver has a few disabled diagnostics, which can probably
just get removed, or might still be helpful:
drivers/staging/nvec/nvec_ps2.c: In function 'nvec_ps2_notifier':
drivers/staging/nvec/nvec_ps2.c:94:77: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
94 | NVEC_PHD("unhandled mouse event: ", msg, msg[1] + 2);
Changing the empty macro to the usual 'do {} while (0)' at least
shuts up the compiler warnings.
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions