git: kernel: Fix the _KERNEL/_KERNEL_STRUCTURES checks w/ error msg a bit.
Sascha Wildner
swildner at crater.dragonflybsd.org
Sat Aug 10 04:52:26 PDT 2019
commit 97b3c8acbaa72d96597f884abbf4d1c4d8790fab
Author: Sascha Wildner <saw at online.de>
Date: Sat Aug 10 13:52:09 2019 +0200
kernel: Fix the _KERNEL/_KERNEL_STRUCTURES checks w/ error msg a bit.
Uniformly use this style:
#ifndef _KERNEL
#error "..."
#endif
over this style:
#ifndef _KERNEL
#error "..."
#else
[rest of header]
#endif
Pointed-out-by: zrj
Summary of changes:
sys/netgraph/netgraph.h | 6 +-----
sys/sys/bus_private.h | 6 +-----
sys/sys/ckpt.h | 8 ++------
sys/sys/eventvar.h | 6 +-----
sys/sys/kernel.h | 3 +--
sys/sys/libkern.h | 3 +--
sys/sys/msgport2.h | 5 +----
sys/sys/power.h | 6 +-----
sys/sys/socketops.h | 7 +------
sys/sys/spinlock2.h | 6 +-----
sys/sys/systm.h | 3 +--
sys/sys/thread2.h | 6 +-----
12 files changed, 13 insertions(+), 52 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/97b3c8acbaa72d96597f884abbf4d1c4d8790fab
--
DragonFly BSD source repository
More information about the Commits
mailing list