mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Parenthesise macro arguments to reduce lint warnings.
This commit is contained in:
parent
d8c1bdfeb2
commit
1a924d7213
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95194
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user