Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha Static'ify more symbols.
details: https://anonhg.NetBSD.org/src/rev/a5ed9bab6679
branches: trunk
changeset: 379061:a5ed9bab6679
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 07 22:46:10 2021 +0000
description:
Static'ify more symbols.
diffstat:
sys/arch/alpha/tc/tcasic.c | 18 +++++++++---------
sys/arch/alpha/tlsb/gbus.c | 6 +++---
sys/arch/alpha/tlsb/mcclock_tlsb.c | 12 ++++++------
3 files changed, 18 insertions(+), 18 deletions(-)
diffs (136 lines):
diff -r dc7e1848c6c1 -r a5ed9bab6679 sys/arch/alpha/tc/tcasic.c
--- a/sys/arch/alpha/tc/tcasic.c Fri May 07 21:51:20 2021 +0000
+++ b/sys/arch/alpha/tc/tcasic.c Fri May 07 22:46:10 2021 +0000
@@ -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 @@
#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)
{
diff -r dc7e1848c6c1 -r a5ed9bab6679 sys/arch/alpha/tlsb/gbus.c
--- a/sys/arch/alpha/tlsb/gbus.c Fri May 07 21:51:20 2021 +0000
+++ b/sys/arch/alpha/tlsb/gbus.c Fri May 07 22:46:10 2021 +0000
@@ -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 },
diff -r dc7e1848c6c1 -r a5ed9bab6679 sys/arch/alpha/tlsb/mcclock_tlsb.c
--- a/sys/arch/alpha/tlsb/mcclock_tlsb.c Fri May 07 21:51:20 2021 +0000
+++ b/sys/arch/alpha/tlsb/mcclock_tlsb.c Fri May 07 22:46:10 2021 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index