svn commit: r333827 - head/sys/kern

Matt Macy mmacy at FreeBSD.org
Sat May 19 03:47:38 UTC 2018


Author: mmacy
Date: Sat May 19 03:47:37 2018
New Revision: 333827
URL: https://svnweb.freebsd.org/changeset/base/333827

Log:
  subr_epoch.c fix unused variable warnings

Modified:
  head/sys/kern/subr_epoch.c

Modified: head/sys/kern/subr_epoch.c
==============================================================================
--- head/sys/kern/subr_epoch.c	Sat May 19 03:47:28 2018	(r333826)
+++ head/sys/kern/subr_epoch.c	Sat May 19 03:47:37 2018	(r333827)
@@ -136,7 +136,7 @@ static bool usedomains = true;
 static void
 epoch_init(void *arg __unused)
 {
-	int domain, count, cpu;
+	int domain, cpu;
 
 	block_count = counter_u64_alloc(M_WAITOK);
 	migrate_count = counter_u64_alloc(M_WAITOK);
@@ -146,7 +146,7 @@ epoch_init(void *arg __unused)
 	epoch_call_task_count = counter_u64_alloc(M_WAITOK);
 	if (usedomains == false)
 		goto done;
-	count = domain = 0;
+	domain = 0;
 	domoffsets[0] = 0;
 	for (domain = 0; domain < vm_ndomains; domain++) {
 		domcount[domain] = CPU_COUNT(&cpuset_domain[domain]);
@@ -361,13 +361,11 @@ epoch_block_handler_preempt(struct ck_epoch *global __
 					void *arg __unused)
 {
 	epoch_record_t record;
-	struct epoch_pcpu_state *eps;
 	struct thread *td, *tdwait, *owner;
 	struct turnstile *ts;
 	struct lock_object *lock;
 	int spincount, gen;
 
-	eps = arg;
 	record = __containerof(cr, struct epoch_record, er_record);
 	td = curthread;
 	spincount = 0;


More information about the svn-src-all mailing list