mirror_zfs/include/os/freebsd/spl/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
..
ia32 Use .section .rodata instead of .rodata on FreeBSD 2023-02-24 16:45:48 -08: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
atomic.h Add membar_sync 2022-09-20 15:32:44 -07:00
byteorder.h Reduce false positives from Static Analyzers 2022-09-30 15:30:12 -07:00
callb.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
ccompat.h
ccompile.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
condvar.h
cred.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
ctype.h
debug.h debug: fix output from VERIFY0 assertion 2022-10-28 11:46:44 -07:00
dirent.h
disp.h Cleanup: Use OpenSolaris functions to call scheduler 2022-09-12 09:55:37 -07:00
dkio.h freebsd: trim dkio.h to the minimum 2022-11-07 15:55:33 -08:00
fcntl.h
file.h
freebsd_rwlock.h
idmap.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
inttypes.h
isa_defs.h freebsd: simplify MD isa_defs.h 2022-11-07 15:55:37 -08:00
kmem_cache.h
kmem.h Introduce kmem_scnprintf() 2022-10-29 13:05:11 -07:00
kstat.h Cleanup: Switch to strlcpy from strncpy 2022-09-27 16:35:29 -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
lock.h
misc.h
mod_os.h Add SHA2 SIMD feature tests for FreeBSD 2023-03-02 13:51:56 -08:00
mode.h
mount.h
mutex.h
param.h
policy.h
proc.h
processor.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
procfs_list.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
random.h
rwlock.h
sdt.h
sid.h
sig.h
simd_aarch64.h Add SHA2 SIMD feature tests for FreeBSD 2023-03-02 13:51:56 -08:00
simd_arm.h Add SHA2 SIMD feature tests for FreeBSD 2023-03-02 13:51:56 -08:00
simd_powerpc.h Add SHA2 SIMD feature tests for FreeBSD 2023-03-02 13:51:56 -08:00
simd_x86.h Add SHA2 SIMD feature tests for FreeBSD 2023-03-02 13:51:56 -08:00
simd.h Add SHA2 SIMD feature tests for FreeBSD 2023-03-02 13:51:56 -08:00
spl_condvar.h
string.h
sunddi.h
sysmacros.h freebsd: simplify MD isa_defs.h 2022-11-07 15:55:37 -08:00
systeminfo.h
systm.h
taskq.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
thread.h
time.h
timer.h Cleanup: Use OpenSolaris functions to call scheduler 2022-09-12 09:55:37 -07:00
trace_zfs.h
trace.h
types32.h
types.h Support idmapped mount 2022-10-19 11:17:09 -07:00
uio.h
uuid.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
vfs.h FreeBSD: Cleanup dead code from VFS 2022-09-02 13:20:10 -07:00
vm.h
vmsystm.h
vnode_impl.h FreeBSD: Cleanup zfs_readdir() 2022-09-20 14:50:16 -07:00
vnode.h freebsd: remove no-op vn_renamepath() 2022-11-07 15:55:20 -08:00
wmsum.h
zmod.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zone.h