Module Name: src
Committed By: thorpej
Date: Fri May 7 22:46:11 UTC 2021
Modified Files:
src/sys/arch/alpha/tc: tcasic.c
src/sys/arch/alpha/tlsb: gbus.c mcclock_tlsb.c
Log Message:
Static'ify more symbols.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/alpha/tc/tcasic.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/alpha/tlsb/gbus.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/alpha/tlsb/mcclock_tlsb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/tc/tcasic.c
diff -u src/sys/arch/alpha/tc/tcasic.c:1.50 src/sys/arch/alpha/tc/tcasic.c:1.51
--- src/sys/arch/alpha/tc/tcasic.c:1.50 Sat Apr 24 23:36:24 2021
+++ src/sys/arch/alpha/tc/tcasic.c Fri May 7 22:46:10 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: tcasic.c,v 1.50 2021/04/24 23:36:24 thorpej Exp $ */
+/* $NetBSD: tcasic.c,v 1.51 2021/05/07 22:46:10 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: tcasic.c,v 1.50 2021/04/24 23:36:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcasic.c,v 1.51 2021/05/07 22:46:10 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -47,20 +47,20 @@ __KERNEL_RCSID(0, "$NetBSD: tcasic.c,v 1
#include <alpha/tc/tc_conf.h>
/* Definition of the driver for autoconfig. */
-int tcasicmatch(device_t, cfdata_t, void *);
-void tcasicattach(device_t, device_t, void *);
+static int tcasicmatch(device_t, cfdata_t, void *);
+static void tcasicattach(device_t, device_t, void *);
CFATTACH_DECL_NEW(tcasic, 0,
tcasicmatch, tcasicattach, NULL, NULL);
extern struct cfdriver tcasic_cd;
-int tcasicprint(void *, const char *);
+static int tcasicprint(void *, const char *);
/* There can be only one. */
-int tcasicfound;
+static int tcasicfound;
-int
+static int
tcasicmatch(device_t parent, cfdata_t cf, void *aux)
{
struct mainbus_attach_args *ma = aux;
@@ -79,7 +79,7 @@ tcasicmatch(device_t parent, cfdata_t cf
return (1);
}
-void
+static void
tcasicattach(device_t parent, device_t self, void *aux)
{
struct tcbus_attach_args tba;
@@ -153,7 +153,7 @@ tcasicattach(device_t parent, device_t s
config_found(self, &tba, tcasicprint, CFARG_EOL);
}
-int
+static int
tcasicprint(void *aux, const char *pnp)
{
Index: src/sys/arch/alpha/tlsb/gbus.c
diff -u src/sys/arch/alpha/tlsb/gbus.c:1.23 src/sys/arch/alpha/tlsb/gbus.c:1.24
--- src/sys/arch/alpha/tlsb/gbus.c:1.23 Sat Apr 24 23:36:24 2021
+++ src/sys/arch/alpha/tlsb/gbus.c Fri May 7 22:46:10 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: gbus.c,v 1.23 2021/04/24 23:36:24 thorpej Exp $ */
+/* $NetBSD: gbus.c,v 1.24 2021/05/07 22:46:10 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gbus.c,v 1.23 2021/04/24 23:36:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gbus.c,v 1.24 2021/05/07 22:46:10 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -69,7 +69,7 @@ CFATTACH_DECL_NEW(gbus, sizeof(struct gb
static int gbusprint(void *, const char *);
-const struct gbus_attach_args gbus_children[] = {
+static const struct gbus_attach_args gbus_children[] = {
{ "zsc", GBUS_DUART0_OFFSET },
{ "zsc", GBUS_DUART1_OFFSET },
{ "mcclock", GBUS_CLOCK_OFFSET },
Index: src/sys/arch/alpha/tlsb/mcclock_tlsb.c
diff -u src/sys/arch/alpha/tlsb/mcclock_tlsb.c:1.17 src/sys/arch/alpha/tlsb/mcclock_tlsb.c:1.18
--- src/sys/arch/alpha/tlsb/mcclock_tlsb.c:1.17 Fri Jul 1 19:19:51 2011
+++ src/sys/arch/alpha/tlsb/mcclock_tlsb.c Fri May 7 22:46:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mcclock_tlsb.c,v 1.17 2011/07/01 19:19:51 dyoung Exp $ */
+/* $NetBSD: mcclock_tlsb.c,v 1.18 2021/05/07 22:46:11 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mcclock_tlsb.c,v 1.17 2011/07/01 19:19:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcclock_tlsb.c,v 1.18 2021/05/07 22:46:11 thorpej Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -65,8 +65,8 @@ struct mcclock_tlsb_softc {
unsigned long regbase;
};
-int mcclock_tlsb_match(device_t, cfdata_t, void *);
-void mcclock_tlsb_attach(device_t, device_t, void *);
+static int mcclock_tlsb_match(device_t, cfdata_t, void *);
+static void mcclock_tlsb_attach(device_t, device_t, void *);
CFATTACH_DECL_NEW(mcclock_tlsb, sizeof(struct mcclock_tlsb_softc),
mcclock_tlsb_match, mcclock_tlsb_attach, NULL, NULL);
@@ -75,7 +75,7 @@ static void mcclock_tlsb_write(struct mc
static u_int mcclock_tlsb_read(struct mc146818_softc *, u_int);
-int
+static int
mcclock_tlsb_match(device_t parent, cfdata_t cf, void *aux)
{
struct gbus_attach_args *ga = aux;
@@ -85,7 +85,7 @@ mcclock_tlsb_match(device_t parent, cfda
return (1);
}
-void
+static void
mcclock_tlsb_attach(device_t parent, device_t self, void *aux)
{
struct mcclock_tlsb_softc *tsc = device_private(self);