svn commit: r333853 - head/sys/kern
Matt Macy
mmacy at FreeBSD.org
Sat May 19 05:00:17 UTC 2018
Author: mmacy
Date: Sat May 19 05:00:16 2018
New Revision: 333853
URL: https://svnweb.freebsd.org/changeset/base/333853
Log:
turnstile / sleepqueue: annotate variables only used by debug builds
Modified:
head/sys/kern/subr_sleepqueue.c
head/sys/kern/subr_turnstile.c
Modified: head/sys/kern/subr_sleepqueue.c
==============================================================================
--- head/sys/kern/subr_sleepqueue.c Sat May 19 04:59:39 2018 (r333852)
+++ head/sys/kern/subr_sleepqueue.c Sat May 19 05:00:16 2018 (r333853)
@@ -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 queu
static void
sleepq_timeout(void *arg)
{
- struct sleepqueue_chain *sc;
+ struct sleepqueue_chain *sc __unused;
struct sleepqueue *sq;
struct thread *td;
void *wchan;
Modified: head/sys/kern/subr_turnstile.c
==============================================================================
--- head/sys/kern/subr_turnstile.c Sat May 19 04:59:39 2018 (r333852)
+++ head/sys/kern/subr_turnstile.c Sat May 19 05:00:16 2018 (r333853)
@@ -804,7 +804,7 @@ turnstile_wait(struct turnstile *ts, struct thread *ow
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;
More information about the svn-src-head
mailing list