turnstile / sleepqueue: annotate variables only used by debug builds
This commit is contained in:
parent
84482abd21
commit
3adccf38e3
@ -384,7 +384,7 @@ void
|
||||
sleepq_set_timeout_sbt(void *wchan, sbintime_t sbt, sbintime_t pr,
|
||||
int flags)
|
||||
{
|
||||
struct sleepqueue_chain *sc;
|
||||
struct sleepqueue_chain *sc __unused;
|
||||
struct thread *td;
|
||||
sbintime_t pr1;
|
||||
|
||||
@ -780,7 +780,7 @@ sleepq_type(void *wchan)
|
||||
static int
|
||||
sleepq_resume_thread(struct sleepqueue *sq, struct thread *td, int pri)
|
||||
{
|
||||
struct sleepqueue_chain *sc;
|
||||
struct sleepqueue_chain *sc __unused;
|
||||
|
||||
MPASS(td != NULL);
|
||||
MPASS(sq->sq_wchan != NULL);
|
||||
@ -974,7 +974,7 @@ sleepq_remove_matching(struct sleepqueue *sq, int queue,
|
||||
static void
|
||||
sleepq_timeout(void *arg)
|
||||
{
|
||||
struct sleepqueue_chain *sc;
|
||||
struct sleepqueue_chain *sc __unused;
|
||||
struct sleepqueue *sq;
|
||||
struct thread *td;
|
||||
void *wchan;
|
||||
|
@ -804,7 +804,7 @@ turnstile_wait(struct turnstile *ts, struct thread *owner, int queue)
|
||||
int
|
||||
turnstile_signal(struct turnstile *ts, int queue)
|
||||
{
|
||||
struct turnstile_chain *tc;
|
||||
struct turnstile_chain *tc __unused;
|
||||
struct thread *td;
|
||||
int empty;
|
||||
|
||||
@ -855,7 +855,7 @@ turnstile_signal(struct turnstile *ts, int queue)
|
||||
void
|
||||
turnstile_broadcast(struct turnstile *ts, int queue)
|
||||
{
|
||||
struct turnstile_chain *tc;
|
||||
struct turnstile_chain *tc __unused;
|
||||
struct turnstile *ts1;
|
||||
struct thread *td;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user