Source-Changes-HG archive

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

[src/trunk]: src/sys/dev lockstat(4): KNF. No functional change intended.



details:   https://anonhg.NetBSD.org/src/rev/cb773abef49c
branches:  trunk
changeset: 362427:cb773abef49c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Feb 27 14:16:32 2022 +0000

description:
lockstat(4): KNF.  No functional change intended.

diffstat:

 external/cddl/osnet/dev/lockstat/lockstat.c |   9 +++++----
 sys/dev/lockstat.c                          |  22 +++++++++++-----------
 2 files changed, 16 insertions(+), 15 deletions(-)

diffs (85 lines):

diff -r 79a6b890bd3e -r cb773abef49c external/cddl/osnet/dev/lockstat/lockstat.c
--- a/external/cddl/osnet/dev/lockstat/lockstat.c       Sun Feb 27 14:16:12 2022 +0000
+++ b/external/cddl/osnet/dev/lockstat/lockstat.c       Sun Feb 27 14:16:32 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockstat.c,v 1.11 2022/02/27 14:16:12 riastradh Exp $  */
+/*     $NetBSD: lockstat.c,v 1.12 2022/02/27 14:16:32 riastradh Exp $  */
 
 /*
  * CDDL HEADER START
@@ -26,18 +26,19 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.11 2022/02/27 14:16:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.12 2022/02/27 14:16:32 riastradh Exp $");
 
 #include <sys/types.h>
-#include <sys/proc.h>
 #include <sys/param.h>
+
+#include <sys/atomic.h>
 #include <sys/conf.h>
 #include <sys/dtrace.h>
 #include <sys/module.h>
 #include <sys/mutex.h>
+#include <sys/proc.h>
 #include <sys/systm.h>
 #include <sys/xcall.h>
-#include <sys/atomic.h>
 
 #define NLOCKSTAT 1
 #include <dev/lockstat.h>
diff -r 79a6b890bd3e -r cb773abef49c sys/dev/lockstat.c
--- a/sys/dev/lockstat.c        Sun Feb 27 14:16:12 2022 +0000
+++ b/sys/dev/lockstat.c        Sun Feb 27 14:16:32 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockstat.c,v 1.28 2022/02/27 14:16:12 riastradh Exp $  */
+/*     $NetBSD: lockstat.c,v 1.29 2022/02/27 14:16:32 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2006, 2007, 2019 The NetBSD Foundation, Inc.
@@ -41,25 +41,25 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.28 2022/02/27 14:16:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.29 2022/02/27 14:16:32 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
-#include <sys/proc.h> 
-#include <sys/resourcevar.h>
-#include <sys/systm.h>
+
+#include <sys/atomic.h>
+#include <sys/conf.h>
+#include <sys/cpu.h>
 #include <sys/kernel.h>
 #include <sys/kmem.h>
-#include <sys/conf.h>
-#include <sys/cpu.h>
+#include <sys/lock.h>
+#include <sys/proc.h>
+#include <sys/resourcevar.h>
 #include <sys/syslog.h>
-#include <sys/atomic.h>
+#include <sys/systm.h>
 #include <sys/xcall.h>
 
 #include <dev/lockstat.h>
 
-#include <machine/lock.h>
-
 #include "ioconf.h"
 
 #ifndef __HAVE_CPU_COUNTER
@@ -353,7 +353,7 @@
        KASSERT(lockstat_baseb == NULL);
        lockstat_sizeb = sz;
        lockstat_baseb = lb;
-               
+
        return (0);
 }
 



Home | Main Index | Thread Index | Old Index