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 make this compile w/o LOCKDEBUG



details:   https://anonhg.NetBSD.org/src/rev/f7693e1fcb3b
branches:  trunk
changeset: 828853:f7693e1fcb3b
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 07 16:08:12 2018 +0000

description:
make this compile w/o LOCKDEBUG

diffstat:

 sys/arch/x86/x86/patch.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r b01c0e14b18c -r f7693e1fcb3b sys/arch/x86/x86/patch.c
--- a/sys/arch/x86/x86/patch.c  Sun Jan 07 15:28:33 2018 +0000
+++ b/sys/arch/x86/x86/patch.c  Sun Jan 07 16:08:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: patch.c,v 1.29 2018/01/07 13:43:24 maxv Exp $  */
+/*     $NetBSD: patch.c,v 1.30 2018/01/07 16:08:12 christos Exp $      */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.29 2018/01/07 13:43:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.30 2018/01/07 16:08:12 christos Exp $");
 
 #include "opt_lockdebug.h"
 #ifdef i386
@@ -170,7 +170,6 @@
        static bool first, second;
        u_long psl;
        u_long cr0;
-       int i;
 
        if (early) {
                if (first)
@@ -202,7 +201,7 @@
 
                /* lock -> nop */
                x86_hotpatch(HP_NAME_NOLOCK, bytes, sizeof(bytes));
-               for (i = 0; atomic_lockpatch[i] != 0; i++)
+               for (int i = 0; atomic_lockpatch[i] != 0; i++)
                        patchbytes(atomic_lockpatch[i], bytes, sizeof(bytes));
 #endif
        }



Home | Main Index | Thread Index | Old Index