Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Use "static" in the function intro if the function ...



details:   https://anonhg.NetBSD.org/src/rev/9189cadf585f
branches:  trunk
changeset: 959856:9189cadf585f
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Feb 27 13:02:42 2021 +0000

description:
Use "static" in the function intro if the function is static.

diffstat:

 sys/kern/kern_ktrace.c |  26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diffs (117 lines):

diff -r b5f3564f3364 -r 9189cadf585f sys/kern/kern_ktrace.c
--- a/sys/kern/kern_ktrace.c    Sat Feb 27 12:55:25 2021 +0000
+++ b/sys/kern/kern_ktrace.c    Sat Feb 27 13:02:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_ktrace.c,v 1.177 2020/05/23 23:42:43 ad Exp $     */
+/*     $NetBSD: kern_ktrace.c,v 1.178 2021/02/27 13:02:42 simonb Exp $ */
 
 /*-
  * Copyright (c) 2006, 2007, 2008, 2020 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.177 2020/05/23 23:42:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.178 2021/02/27 13:02:42 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -262,7 +262,7 @@
 /*
  * Release a reference.  Called with ktrace_lock held.
  */
-void
+static void
 ktdrel(struct ktr_desc *ktd)
 {
 
@@ -278,7 +278,7 @@
        }
 }
 
-void
+static void
 ktdref(struct ktr_desc *ktd)
 {
 
@@ -288,7 +288,7 @@
        ktrace_on++;
 }
 
-struct ktr_desc *
+static struct ktr_desc *
 ktd_lookup(file_t *fp)
 {
        struct ktr_desc *ktd;
@@ -411,7 +411,7 @@
        ktrexit(l);
 }
 
-void
+static void
 ktefree(struct ktrace_entry *kte)
 {
 
@@ -426,7 +426,7 @@
  * same underlying vnode/socket.
  */
 
-int
+static int
 ktrsamefile(file_t *f1, file_t *f2)
 {
 
@@ -462,7 +462,7 @@
        ktdref(ktd);
 }
 
-int
+static int
 ktrderefall(struct ktr_desc *ktd, int auth)
 {
        lwp_t *curl = curlwp;
@@ -1165,7 +1165,7 @@
        return error;
 }
 
-int
+static int
 ktrops(lwp_t *curl, struct proc *p, int ops, int facs,
     struct ktr_desc *ktd)
 {
@@ -1231,7 +1231,7 @@
        return error ? 0 : 1;
 }
 
-int
+static int
 ktrsetchildren(lwp_t *curl, struct proc *top, int ops, int facs,
     struct ktr_desc *ktd)
 {
@@ -1265,7 +1265,7 @@
        /*NOTREACHED*/
 }
 
-void
+static void
 ktrwrite(struct ktr_desc *ktd, struct ktrace_entry *kte)
 {
        size_t hlen;
@@ -1359,7 +1359,7 @@
        }
 }
 
-void
+static void
 ktrace_thread(void *arg)
 {
        struct ktr_desc *ktd = arg;
@@ -1427,7 +1427,7 @@
  *
  * TODO: check groups.  use caller effective gid.
  */
-int
+static int
 ktrcanset(lwp_t *calll, struct proc *targetp)
 {
        KASSERT(mutex_owned(targetp->p_lock));



Home | Main Index | Thread Index | Old Index