Source-Changes-HG archive

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

[src/trunk]: src/sys/net Make some rt_timer functions and variables static



details:   https://anonhg.NetBSD.org/src/rev/999e211406da
branches:  trunk
changeset: 348510:999e211406da
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Oct 21 09:01:44 2016 +0000

description:
Make some rt_timer functions and variables static

No functional change.

diffstat:

 sys/net/route.c |  21 +++++++++++++--------
 sys/net/route.h |   6 +-----
 2 files changed, 14 insertions(+), 13 deletions(-)

diffs (94 lines):

diff -r 501f13024ae0 -r 999e211406da sys/net/route.c
--- a/sys/net/route.c   Fri Oct 21 08:30:48 2016 +0000
+++ b/sys/net/route.c   Fri Oct 21 09:01:44 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.176 2016/10/21 03:04:33 ozaki-r Exp $      */
+/*     $NetBSD: route.c,v 1.177 2016/10/21 09:01:44 ozaki-r Exp $      */
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.176 2016/10/21 03:04:33 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.177 2016/10/21 09:01:44 ozaki-r Exp $");
 
 #include <sys/param.h>
 #ifdef RTFLUSH_DEBUG
@@ -138,8 +138,13 @@
 static struct pool     rttimer_pool;
 
 static struct callout  rt_timer_ch; /* callout for rt_timer_timer() */
-struct workqueue       *rt_timer_wq;
-struct work            rt_timer_wk;
+static struct workqueue        *rt_timer_wq;
+static struct work     rt_timer_wk;
+
+static void    rt_timer_init(void);
+static void    rt_timer_queue_remove_all(struct rttimer_queue *, int);
+static void    rt_timer_remove_all(struct rtentry *, int);
+static void    rt_timer_timer(void *);
 
 #ifdef RTFLUSH_DEBUG
 static int _rtcache_debug = 0;
@@ -1236,7 +1241,7 @@
 
 static void rt_timer_work(struct work *, void *);
 
-void
+static void
 rt_timer_init(void)
 {
        int error;
@@ -1280,7 +1285,7 @@
        rtq->rtq_timeout = timeout;
 }
 
-void
+static void
 rt_timer_queue_remove_all(struct rttimer_queue *rtq, int destroy)
 {
        struct rttimer *r;
@@ -1319,7 +1324,7 @@
        return rtq->rtq_count;
 }
 
-void
+static void
 rt_timer_remove_all(struct rtentry *rt, int destroy)
 {
        struct rttimer *r;
@@ -1409,7 +1414,7 @@
        callout_reset(&rt_timer_ch, hz, rt_timer_timer, NULL);
 }
 
-void
+static void
 rt_timer_timer(void *arg)
 {
 
diff -r 501f13024ae0 -r 999e211406da sys/net/route.h
--- a/sys/net/route.h   Fri Oct 21 08:30:48 2016 +0000
+++ b/sys/net/route.h   Fri Oct 21 09:01:44 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.104 2016/10/18 09:43:20 ozaki-r Exp $      */
+/*     $NetBSD: route.h,v 1.105 2016/10/21 09:01:44 ozaki-r Exp $      */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -371,14 +371,10 @@
            struct rttimer_queue *);
 unsigned long
        rt_timer_count(struct rttimer_queue *);
-void   rt_timer_init(void);
 void   rt_timer_queue_change(struct rttimer_queue *, long);
 struct rttimer_queue *
        rt_timer_queue_create(u_int);
 void   rt_timer_queue_destroy(struct rttimer_queue *, int);
-void   rt_timer_queue_remove_all(struct rttimer_queue *, int);
-void   rt_timer_remove_all(struct rtentry *, int);
-void   rt_timer_timer(void *);
 
 void   rt_newmsg(const int, const struct rtentry *);
 struct rtentry *



Home | Main Index | Thread Index | Old Index