Module Name:    src
Committed By:   christos
Date:           Sun Jan  7 16:08:12 UTC 2018

Modified Files:
        src/sys/arch/x86/x86: patch.c

Log Message:
make this compile w/o LOCKDEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/x86/x86/patch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/patch.c
diff -u src/sys/arch/x86/x86/patch.c:1.29 src/sys/arch/x86/x86/patch.c:1.30
--- src/sys/arch/x86/x86/patch.c:1.29	Sun Jan  7 08:43:24 2018
+++ src/sys/arch/x86/x86/patch.c	Sun Jan  7 11:08:12 2018
@@ -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 @@ x86_patch(bool early)
 	static bool first, second;
 	u_long psl;
 	u_long cr0;
-	int i;
 
 	if (early) {
 		if (first)
@@ -202,7 +201,7 @@ x86_patch(bool early)
 
 		/* 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
 	}

Reply via email to