zfs/lib/libspl/include
Attila Fülöp 5f3611121d
spl: cmn_err_once() should be usable in brace-less if else statements
Commit 11913870 (#14567) added cmn_err_once() by #define'ing a
compound statement but failed to consider usage in a single
statement brace-less if else.

Fix the problem by using the common "do {} while (0)" construct.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Attila Fülöp <attila@fueloep.org>
Closes #14629
2023-03-15 11:13:25 -07:00
..
os Use .section .rodata instead of .rodata on FreeBSD 2023-02-24 16:45:48 -08:00
rpc Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
sys spl: cmn_err_once() should be usable in brace-less if else statements 2023-03-15 11:13:25 -07:00
Makefile.am Add SHA2 SIMD feature tests for libspl 2023-03-02 13:52:15 -08:00
assert.h Reduce false positives from Static Analyzers 2022-09-30 15:30:12 -07:00
atomic.h Add membar_sync 2022-09-20 15:32:44 -07:00
libgen.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
libshare.h Make zfs-share service resilient to stale exports 2022-09-09 10:54:16 -07:00
statcommon.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
stdlib.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
string.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
umem.h Aligned free for aligned alloc 2022-10-26 15:08:31 -07:00
unistd.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zone.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00