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 Avoid unused variable warnings on Sun4c...
details: https://anonhg.NetBSD.org/src/rev/780edb72a5bc
branches: trunk
changeset: 748657:780edb72a5bc
user: he <he%NetBSD.org@localhost>
date: Fri Oct 30 15:05:54 2009 +0000
description:
Avoid unused variable warnings on Sun4c-only kernels.
Fix applied from PR#42249 -- thanks!
diffstat:
sys/arch/sparc/sparc/pmap.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 213736a756a2 -r 780edb72a5bc sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Fri Oct 30 10:58:15 2009 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Fri Oct 30 15:05:54 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.335 2009/10/21 21:12:02 rmind Exp $ */
+/* $NetBSD: pmap.c,v 1.336 2009/10/30 15:05:54 he Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.335 2009/10/21 21:12:02 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.336 2009/10/30 15:05:54 he Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -2086,7 +2086,9 @@
struct regmap *rp;
int gap_start, gap_end;
vaddr_t va;
+#if defined(SUN4M) || defined(SUN4D)
struct cpu_info *cpi;
+#endif
/*XXX-GCC!*/gap_start=gap_end=0;
#ifdef DEBUG
@@ -2253,8 +2255,10 @@
ctx_free(struct pmap *pm)
{
union ctxinfo *c;
+ int ctx;
+#if defined(SUN4M) || defined(SUN4D)
struct cpu_info *cpi;
- int ctx;
+#endif
c = pm->pm_ctx;
ctx = pm->pm_ctxnum;
Home |
Main Index |
Thread Index |
Old Index