diff options
author | Arnd Bergmann <[email protected]> | 2021-03-22 12:42:51 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-03-23 15:04:59 +0100 |
commit | 53f95c55349e75b73f69ce36b0ae2a83b3f28fde (patch) | |
tree | dbed8bdd07650774a9eece61b0adedc6662c2e33 /lib/mpi/mpi-inline.h | |
parent | 7f2fac70b729d68a34e5eba8d1fb68eb69b05169 (diff) |
devcoredump: avoid -Wempty-body warnings
Cleaning out the last -Wempty-body warnings found some interesting
cases with empty macros, along with harmless warnings like this one:
drivers/base/devcoredump.c: In function 'dev_coredumpm':
drivers/base/devcoredump.c:297:56: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
297 | /* nothing - symlink will be missing */;
| ^
drivers/base/devcoredump.c:301:56: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
301 | /* nothing - symlink will be missing */;
| ^
Randy tried addressing this one before, and there were multiple
other ideas in that thread.
Add a runtime warning and code comment here.
Link: https://lore.kernel.org/lkml/[email protected]/
Cc: Randy Dunlap <[email protected]>
Cc: Matthew Wilcox <[email protected]>
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 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions