Source-Changes-HG archive

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

[src/trunk]: src/sys/kern kern/subr_log.c: log_lock is private; make it stati...



details:   https://anonhg.NetBSD.org/src/rev/e5960f1ddbac
branches:  trunk
changeset: 372072:e5960f1ddbac
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:28:30 2022 +0000

description:
kern/subr_log.c: log_lock is private; make it static, not extern.

diffstat:

 sys/kern/subr_log.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 2aba68596f3d -r e5960f1ddbac sys/kern/subr_log.c
--- a/sys/kern/subr_log.c       Wed Oct 26 23:28:18 2022 +0000
+++ b/sys/kern/subr_log.c       Wed Oct 26 23:28:30 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_log.c,v 1.62 2021/09/26 15:11:33 thorpej Exp $    */
+/*     $NetBSD: subr_log.c,v 1.63 2022/10/26 23:28:30 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_log.c,v 1.62 2021/09/26 15:11:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_log.c,v 1.63 2022/10/26 23:28:30 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -93,7 +93,7 @@
 static kcondvar_t log_cv;
 static void    *log_sih;
 
-kmutex_t log_lock;
+static kmutex_t log_lock;
 int    log_open;                       /* also used in log() */
 int    msgbufmapped;                   /* is the message buffer mapped */
 int    msgbufenabled;                  /* is logging to the buffer enabled */
@@ -457,7 +457,6 @@
        char *where = oldp;
        size_t len, maxlen;
        long beg, end;
-       extern kmutex_t log_lock;
        int error;
 
        if (!logenabled(msgbufp)) {



Home | Main Index | Thread Index | Old Index