Source-Changes-HG archive

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

[src/trunk]: src/sys todr_gettime() and todr_settime() are not referenced out...



details:   https://anonhg.NetBSD.org/src/rev/0bc32a88ca1a
branches:  trunk
changeset: 847698:0bc32a88ca1a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jan 01 18:08:11 2020 +0000

description:
todr_gettime() and todr_settime() are not referenced outside of kern_todr.c,
so make them private to that file.

diffstat:

 sys/dev/clock_subr.h |   8 +-------
 sys/kern/kern_todr.c |  12 +++++++-----
 2 files changed, 8 insertions(+), 12 deletions(-)

diffs (69 lines):

diff -r 744a707b79c6 -r 0bc32a88ca1a sys/dev/clock_subr.h
--- a/sys/dev/clock_subr.h      Wed Jan 01 17:28:17 2020 +0000
+++ b/sys/dev/clock_subr.h      Wed Jan 01 18:08:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock_subr.h,v 1.26 2018/04/19 21:50:08 christos Exp $ */
+/*     $NetBSD: clock_subr.h,v 1.27 2020/01/01 18:08:11 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -97,12 +97,6 @@
                                        ((*(ct)->todr_setwen)(ct, v))
 
 /*
- * Probably these should evolve into internal routines in kern_todr.c.
- */
-extern int todr_gettime(todr_chip_handle_t, struct timeval *);
-extern int todr_settime(todr_chip_handle_t, struct timeval *);
-
-/*
  * Machine-dependent function that machine-independent RTC drivers can
  * use to register their todr_chip_handle_t with inittodr()/resettodr().
  */
diff -r 744a707b79c6 -r 0bc32a88ca1a sys/kern/kern_todr.c
--- a/sys/kern/kern_todr.c      Wed Jan 01 17:28:17 2020 +0000
+++ b/sys/kern/kern_todr.c      Wed Jan 01 18:08:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_todr.c,v 1.41 2020/01/01 17:28:17 thorpej Exp $   */
+/*     $NetBSD: kern_todr.c,v 1.42 2020/01/01 18:08:11 thorpej Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -41,7 +41,7 @@
 #include "opt_todr.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.41 2020/01/01 17:28:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.42 2020/01/01 18:08:11 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -53,6 +53,9 @@
 
 #include <dev/clock_subr.h>    /* hmm.. this should probably move to sys */
 
+static int todr_gettime(todr_chip_handle_t, struct timeval *);
+static int todr_settime(todr_chip_handle_t, struct timeval *);
+
 static todr_chip_handle_t todr_handle = NULL;
 
 /*
@@ -235,8 +238,7 @@
 #define        todr_debug(prefix, rv, dt, tvp)
 #endif /* TODR_DEBUG */
 
-
-int
+static int
 todr_gettime(todr_chip_handle_t tch, struct timeval *tvp)
 {
        struct clock_ymdhms     dt;
@@ -285,7 +287,7 @@
        return ENXIO;
 }
 
-int
+static int
 todr_settime(todr_chip_handle_t tch, struct timeval *tvp)
 {
        struct clock_ymdhms     dt;



Home | Main Index | Thread Index | Old Index