mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
kern: move __always_inline to canonical position
Ahead of including inline in __always_inline, move __always_inline to where inline goes. Reviewed by: kib, olce Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D45708
This commit is contained in:
parent
daa2c99c89
commit
3c84b4b35f
@ -115,7 +115,7 @@ CTASSERT(LK_UNLOCKED == (LK_UNLOCKED &
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
LK_CAN_SHARE(uintptr_t x, int flags, bool fp)
|
||||
{
|
||||
|
||||
@ -180,9 +180,10 @@ struct lockmgr_wait {
|
||||
int itimo;
|
||||
};
|
||||
|
||||
static bool __always_inline lockmgr_slock_try(struct lock *lk, uintptr_t *xp,
|
||||
static __always_inline bool lockmgr_slock_try(struct lock *lk, uintptr_t *xp,
|
||||
int flags, bool fp);
|
||||
static bool __always_inline lockmgr_sunlock_try(struct lock *lk, uintptr_t *xp);
|
||||
static __always_inline bool lockmgr_sunlock_try(struct lock *lk,
|
||||
uintptr_t *xp);
|
||||
|
||||
static void
|
||||
lockmgr_exit(u_int flags, struct lock_object *ilk, int wakeup_swapper)
|
||||
@ -511,7 +512,7 @@ lockdestroy(struct lock *lk)
|
||||
lock_destroy(&lk->lock_object);
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
lockmgr_slock_try(struct lock *lk, uintptr_t *xp, int flags, bool fp)
|
||||
{
|
||||
|
||||
@ -531,7 +532,7 @@ lockmgr_slock_try(struct lock *lk, uintptr_t *xp, int flags, bool fp)
|
||||
return (false);
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
lockmgr_sunlock_try(struct lock *lk, uintptr_t *xp)
|
||||
{
|
||||
|
||||
|
@ -384,7 +384,7 @@ _rw_wunlock_cookie(volatile uintptr_t *c, const char *file, int line)
|
||||
* is unlocked and has no writer waiters or spinners. Failing otherwise
|
||||
* prioritizes writers before readers.
|
||||
*/
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
__rw_can_read(struct thread *td, uintptr_t v, bool fp)
|
||||
{
|
||||
|
||||
@ -396,7 +396,7 @@ __rw_can_read(struct thread *td, uintptr_t v, bool fp)
|
||||
return (false);
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
__rw_rlock_try(struct rwlock *rw, struct thread *td, uintptr_t *vp, bool fp
|
||||
LOCK_FILE_LINE_ARG_DEF)
|
||||
{
|
||||
@ -742,7 +742,7 @@ __rw_try_rlock(volatile uintptr_t *c, const char *file, int line)
|
||||
return (__rw_try_rlock_int(rw LOCK_FILE_LINE_ARG));
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
__rw_runlock_try(struct rwlock *rw, struct thread *td, uintptr_t *vp)
|
||||
{
|
||||
|
||||
|
@ -984,7 +984,7 @@ _sx_xunlock_hard(struct sx *sx, uintptr_t x LOCK_FILE_LINE_ARG_DEF)
|
||||
kick_proc0();
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
__sx_can_read(struct thread *td, uintptr_t x, bool fp)
|
||||
{
|
||||
|
||||
@ -996,7 +996,7 @@ __sx_can_read(struct thread *td, uintptr_t x, bool fp)
|
||||
return (false);
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
__sx_slock_try(struct sx *sx, struct thread *td, uintptr_t *xp, bool fp
|
||||
LOCK_FILE_LINE_ARG_DEF)
|
||||
{
|
||||
@ -1306,7 +1306,7 @@ _sx_slock(struct sx *sx, int opts, const char *file, int line)
|
||||
return (_sx_slock_int(sx, opts LOCK_FILE_LINE_ARG));
|
||||
}
|
||||
|
||||
static bool __always_inline
|
||||
static __always_inline bool
|
||||
_sx_sunlock_try(struct sx *sx, struct thread *td, uintptr_t *xp)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user