Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add missing "static" declaration



details:   https://anonhg.NetBSD.org/src/rev/8f307854cc66
branches:  trunk
changeset: 451182:8f307854cc66
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu May 09 04:52:59 2019 +0000

description:
Add missing "static" declaration

diffstat:

 sys/kern/kern_mutex.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ca704d914d6f -r 8f307854cc66 sys/kern/kern_mutex.c
--- a/sys/kern/kern_mutex.c     Thu May 09 02:43:35 2019 +0000
+++ b/sys/kern/kern_mutex.c     Thu May 09 04:52:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_mutex.c,v 1.77 2019/04/17 02:29:43 ozaki-r Exp $  */
+/*     $NetBSD: kern_mutex.c,v 1.78 2019/05/09 04:52:59 ozaki-r Exp $  */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 #define        __MUTEX_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.77 2019/04/17 02:29:43 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.78 2019/05/09 04:52:59 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -298,7 +298,7 @@
  *
  *     Dump the contents of a mutex structure.
  */
-void
+static void
 mutex_dump(const volatile void *cookie)
 {
        const volatile kmutex_t *mtx = cookie;
@@ -315,7 +315,7 @@
  *     generates a lot of machine code in the DIAGNOSTIC case, so
  *     we ask the compiler to not inline it.
  */
-void __noinline
+static void __noinline
 mutex_abort(const char *func, size_t line, const kmutex_t *mtx, const char *msg)
 {
 



Home | Main Index | Thread Index | Old Index