Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev Make local functions and variable static.
details: https://anonhg.NetBSD.org/src/rev/78441d259d0c
branches: trunk
changeset: 366366:78441d259d0c
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon May 23 16:54:29 2022 +0000
description:
Make local functions and variable static.
diffstat:
sys/arch/x68k/dev/ms.c | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diffs (135 lines):
diff -r 49a60ffbdce8 -r 78441d259d0c sys/arch/x68k/dev/ms.c
--- a/sys/arch/x68k/dev/ms.c Mon May 23 16:19:59 2022 +0000
+++ b/sys/arch/x68k/dev/ms.c Mon May 23 16:54:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ms.c,v 1.38 2022/05/23 16:19:59 tsutsui Exp $ */
+/* $NetBSD: ms.c,v 1.39 2022/05/23 16:54:29 tsutsui Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.38 2022/05/23 16:19:59 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ms.c,v 1.39 2022/05/23 16:54:29 tsutsui Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -149,7 +149,7 @@
static int ms_match(device_t, cfdata_t, void *);
static void ms_attach(device_t, device_t, void *);
static void ms_trigger(struct zs_chanstate *, int);
-void ms_modem(void *);
+static void ms_modem(void *);
CFATTACH_DECL_NEW(ms, sizeof(struct ms_softc),
ms_match, ms_attach, NULL, NULL);
@@ -160,19 +160,19 @@
static void ms_softint(struct zs_chanstate *);
static void ms_input(struct ms_softc *, int);
-struct zsops zsops_ms = {
+static struct zsops zsops_ms = {
ms_rxint, /* receive char available */
ms_stint, /* external/status */
ms_txint, /* xmit buffer empty */
ms_softint, /* process software interrupt */
};
-dev_type_open(msopen);
-dev_type_close(msclose);
-dev_type_read(msread);
-dev_type_ioctl(msioctl);
-dev_type_poll(mspoll);
-dev_type_kqfilter(mskqfilter);
+static dev_type_open(msopen);
+static dev_type_close(msclose);
+static dev_type_read(msread);
+static dev_type_ioctl(msioctl);
+static dev_type_poll(mspoll);
+static dev_type_kqfilter(mskqfilter);
const struct cdevsw ms_cdevsw ={
.d_open = msopen,
@@ -192,7 +192,7 @@
/*
* ms_match: how is this zs channel configured?
*/
-int
+static int
ms_match(device_t parent, cfdata_t cf, void *aux)
{
struct zsc_attach_args *args = aux;
@@ -209,7 +209,7 @@
return 2;
}
-void
+static void
ms_attach(device_t parent, device_t self, void *aux)
{
struct ms_softc *ms = device_private(self);
@@ -247,7 +247,7 @@
* (open,close,read,write,...)
****************************************************************/
-int
+static int
msopen(dev_t dev, int flags, int mode, struct lwp *l)
{
struct ms_softc *ms;
@@ -273,7 +273,7 @@
return 0;
}
-int
+static int
msclose(dev_t dev, int flags, int mode, struct lwp *l)
{
struct ms_softc *ms;
@@ -287,7 +287,7 @@
return 0;
}
-int
+static int
msread(dev_t dev, struct uio *uio, int flags)
{
struct ms_softc *ms;
@@ -296,7 +296,7 @@
return ev_read(&ms->ms_events, uio, flags);
}
-int
+static int
msioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
{
struct ms_softc *ms;
@@ -336,7 +336,7 @@
return ENOTTY;
}
-int
+static int
mspoll(dev_t dev, int events, struct lwp *l)
{
struct ms_softc *ms;
@@ -345,7 +345,7 @@
return ev_poll(&ms->ms_events, events, l);
}
-int
+static int
mskqfilter(dev_t dev, struct knote *kn)
{
struct ms_softc *ms;
@@ -658,7 +658,7 @@
* mouse timer interrupt.
* called after system tick interrupt is done.
*/
-void
+static void
ms_modem(void *arg)
{
struct ms_softc *ms = arg;
Home |
Main Index |
Thread Index |
Old Index