summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-03-22 17:27:45 +0100
committerPaul Moore <paul@paul-moore.com>2021-03-24 12:11:48 -0400
commitd4ceb1d6e732b11d7226ff6d51adf2418bb1f60f (patch)
tree96bdb716018213c56e1424f5a9e76457fc84b338 /Documentation/ABI
parent7c585c9dffa5cd5155cdd0e41c52b403d13626d8 (diff)
downloadlinux-stable-d4ceb1d6e732b11d7226ff6d51adf2418bb1f60f.tar.gz
linux-stable-d4ceb1d6e732b11d7226ff6d51adf2418bb1f60f.tar.bz2
linux-stable-d4ceb1d6e732b11d7226ff6d51adf2418bb1f60f.zip
audit: avoid -Wempty-body warning
gcc warns about an empty statement when audit_remove_mark is defined to nothing: kernel/auditfilter.c: In function 'audit_data_to_entry': kernel/auditfilter.c:609:51: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 609 | audit_remove_mark(entry->rule.exe); /* that's the template one */ | ^ Change the macros to use the usual "do { } while (0)" instead, and change a few more that were (void)0, for consistency. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions