git: 8ff2b41c05a8 - main - posix timers: Declare unexported functions as static

Mark Johnston markj at FreeBSD.org
Mon Mar 8 17:55:07 UTC 2021


The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=8ff2b41c05a8f98e30250b929e9722f714f1f319

commit 8ff2b41c05a8f98e30250b929e9722f714f1f319
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-03-08 17:39:06 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-03-08 17:39:06 +0000

    posix timers: Declare unexported functions as static
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 sys/kern/kern_time.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 6222bdc39bee..1d5bd2343153 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -107,8 +107,8 @@ static void	realtimer_clocktime(clockid_t, struct timespec *);
 static void	realtimer_expire(void *);
 
 static int	register_posix_clock(int, const struct kclock *);
-void		itimer_fire(struct itimer *it);
-int		itimespecfix(struct timespec *ts);
+static void	itimer_fire(struct itimer *it);
+static int	itimespecfix(struct timespec *ts);
 
 #define CLOCK_CALL(clock, call, arglist)		\
 	((*posix_clocks[clock].call) arglist)
@@ -1592,7 +1592,7 @@ itimer_accept(struct proc *p, int timerid, ksiginfo_t *ksi)
 	return (EINVAL);
 }
 
-int
+static int
 itimespecfix(struct timespec *ts)
 {
 
@@ -1653,7 +1653,7 @@ realtimer_expire(void *arg)
 	}
 }
 
-void
+static void
 itimer_fire(struct itimer *it)
 {
 	struct proc *p = it->it_proc;


More information about the dev-commits-src-all mailing list