Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/sparc shut up an unused variable warning that...



details:   https://anonhg.NetBSD.org/src/rev/ac34de58b56f
branches:  trunk
changeset: 791925:ac34de58b56f
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Dec 10 17:24:47 2013 +0000

description:
shut up an unused variable warning that shows up in UP kernels

diffstat:

 sys/arch/sparc/sparc/pmap.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 18743da13a21 -r ac34de58b56f sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Tue Dec 10 16:30:36 2013 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Tue Dec 10 17:24:47 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.354 2013/12/08 10:12:39 jdc Exp $ */
+/*     $NetBSD: pmap.c,v 1.355 2013/12/10 17:24:47 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.354 2013/12/08 10:12:39 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.355 2013/12/10 17:24:47 macallan Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -2323,6 +2323,8 @@
        if (CPU_HAS_SRMMU) {
                int i;
 
+               __USE(i);
+
                cache_flush_context(ctx);
                tlb_flush_context(ctx, PMAP_CPUSET(pm));
                for (CPU_INFO_FOREACH(i, cpi)) {



Home | Main Index | Thread Index | Old Index