Parenthesise macro arguments to reduce lint warnings.

This commit is contained in:
Mark Murray 2002-04-21 10:43:24 +00:00
parent d8c1bdfeb2
commit 1a924d7213
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95194
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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)