Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Declare our variables before using them, fi...



details:   https://anonhg.NetBSD.org/src/rev/ea5fe5cc506a
branches:  trunk
changeset: 320913:ea5fe5cc506a
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Mar 04 23:07:58 2018 +0000

description:
Declare our variables before using them, fixes DIAGNOSTIC amd64 XEN builds.

diffstat:

 sys/arch/x86/x86/pmap.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r bbf605de079f -r ea5fe5cc506a sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sun Mar 04 22:47:49 2018 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sun Mar 04 23:07:58 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.287 2018/03/04 11:01:48 jdolecek Exp $      */
+/*     $NetBSD: pmap.c,v 1.288 2018/03/04 23:07:58 kre Exp $   */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -170,7 +170,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.287 2018/03/04 11:01:48 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.288 2018/03/04 23:07:58 kre Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -2550,6 +2550,9 @@
 #ifdef DIAGNOSTIC
        CPU_INFO_ITERATOR cii;
        struct cpu_info *ci;
+#if defined(XEN) && defined(__x86_64__)
+       int i;
+#endif
 
        for (CPU_INFO_FOREACH(cii, ci)) {
                if (ci->ci_pmap == pmap)



Home | Main Index | Thread Index | Old Index