mirror_zfs/lib/libspl/include/sys
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
..
dktp Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
acl_impl.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
acl.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
asm_linkage.h Unify Assembler files between Linux and Windows 2023-01-17 11:09:19 -08:00
callb.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
cmn_err.h spl: cmn_err_once() should be usable in brace-less if else statements 2023-03-15 11:13:25 -07:00
cred.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
debug.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
dkio.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
dklabel.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
feature_tests.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
inttypes.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
isa_defs.h Improve RISC-V support 2022-11-03 09:39:28 -07:00
kmem.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
kstat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
list_impl.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
list.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
mhd.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
mkdev.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
policy.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
poll.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
priv.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
processor.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
simd.h Fix building for powerpc* targets with some compilers 2023-03-15 10:44:28 -07:00
stack.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
stdtypes.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
string.h Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
sunddi.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
systeminfo.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
time.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
trace_spl.h Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
trace_zfs.h Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
types32.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
types.h freebsd: simplify MD isa_defs.h 2022-11-07 15:55:37 -08:00
uio.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
vnode.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
wmsum.h Introduce write-mostly sums 2021-05-27 14:27:29 -06:00
zone.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00