diff options
| author | Mark Murray <markm@FreeBSD.org> | 2002-04-21 10:43:24 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2002-04-21 10:43:24 +0000 |
| commit | 1a924d72132e7e4d9ed7b27a7e432efd986e42f0 (patch) | |
| tree | 57d1876a810eebf72af334be531ec9309a55f9c3 /sys | |
| parent | d8c1bdfeb268f54f679fab78d07ff07bc8df1544 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/sys/kernel.h | 8 | ||||
| -rw-r--r-- | sys/sys/lock.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 9eff1b61dc9a..6a5b5e56e8ea 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -228,13 +228,13 @@ struct sysinit { subsystem, \ order, \ func, \ - ident \ + (ident) \ }; \ DATA_SET(sysinit_set,uniquifier ## _sys_init); #define SYSINIT(uniquifier, subsystem, order, func, ident) \ C_SYSINIT(uniquifier, subsystem, order, \ - (sysinit_cfunc_t)(sysinit_nfunc_t)func, (void *)ident) + (sysinit_cfunc_t)(sysinit_nfunc_t)func, (void *)(ident)) /* * Called on module unload: no special processing @@ -244,13 +244,13 @@ struct sysinit { subsystem, \ order, \ func, \ - ident \ + (ident) \ }; \ DATA_SET(sysuninit_set,uniquifier ## _sys_uninit) #define SYSUNINIT(uniquifier, subsystem, order, func, ident) \ C_SYSUNINIT(uniquifier, subsystem, order, \ - (sysinit_cfunc_t)(sysinit_nfunc_t)func, (void *)ident) + (sysinit_cfunc_t)(sysinit_nfunc_t)func, (void *)(ident)) void sysinit_add(struct sysinit **set, struct sysinit **set_end); diff --git a/sys/sys/lock.h b/sys/sys/lock.h index a55bf544580d..8ecdcb8780f0 100644 --- a/sys/sys/lock.h +++ b/sys/sys/lock.h @@ -246,8 +246,8 @@ void witness_assert(struct lock_object *, int, const char *, int); witness_restore((lock), __CONCAT(n, __wf), __CONCAT(n, __wl)) #else /* WITNESS */ -#define WITNESS_INIT(lock) (lock)->lo_flags |= LO_INITIALIZED -#define WITNESS_DESTROY(lock) (lock)->lo_flags &= ~LO_INITIALIZED +#define WITNESS_INIT(lock) ((lock)->lo_flags |= LO_INITIALIZED) +#define WITNESS_DESTROY(lock) ((lock)->lo_flags &= ~LO_INITIALIZED) #define WITNESS_LOCK(lock, flags, file, line) #define WITNESS_UPGRADE(lock, flags, file, line) #define WITNESS_DOWNGRADE(lock, flags, file, line) |
