Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/dev Make local functions static.
details: https://anonhg.NetBSD.org/src/rev/77fbd5b01958
branches: trunk
changeset: 948717:77fbd5b01958
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Dec 29 17:17:14 2020 +0000
description:
Make local functions static.
diffstat:
sys/arch/luna68k/dev/lcd.c | 40 ++++++++++++++++++++--------------------
sys/arch/luna68k/dev/siotty.c | 36 ++++++++++++++++++------------------
sys/arch/luna68k/dev/xp.c | 28 ++++++++++++++--------------
3 files changed, 52 insertions(+), 52 deletions(-)
diffs (truncated from 334 to 300 lines):
diff -r fb59b1955fa4 -r 77fbd5b01958 sys/arch/luna68k/dev/lcd.c
--- a/sys/arch/luna68k/dev/lcd.c Tue Dec 29 17:16:15 2020 +0000
+++ b/sys/arch/luna68k/dev/lcd.c Tue Dec 29 17:17:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lcd.c,v 1.11 2019/06/30 05:04:48 tsutsui Exp $ */
+/* $NetBSD: lcd.c,v 1.12 2020/12/29 17:17:14 tsutsui Exp $ */
/* $OpenBSD: lcd.c,v 1.7 2015/02/10 22:42:35 miod Exp $ */
/*-
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: lcd.c,v 1.11 2019/06/30 05:04:48 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lcd.c,v 1.12 2020/12/29 17:17:14 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -82,10 +82,10 @@
static int lcd_match(device_t, cfdata_t, void *);
static void lcd_attach(device_t, device_t, void *);
-dev_type_open(lcdopen);
-dev_type_close(lcdclose);
-dev_type_write(lcdwrite);
-dev_type_ioctl(lcdioctl);
+static dev_type_open(lcdopen);
+static dev_type_close(lcdclose);
+static dev_type_write(lcdwrite);
+static dev_type_ioctl(lcdioctl);
const struct cdevsw lcd_cdevsw = {
.d_open = lcdopen,
@@ -111,11 +111,11 @@
CFATTACH_DECL_NEW(lcd, sizeof(struct lcd_softc),
lcd_match, lcd_attach, NULL, NULL);
-void lcdbusywait(void);
-void lcdput(int);
-void lcdctrl(int);
-void lcdshow(char *);
-void greeting(void);
+static void lcdbusywait(void);
+static void lcdput(int);
+static void lcdctrl(int);
+static void lcdshow(char *);
+static void greeting(void);
/* "1234567890123456" */
static char lcd_boot_message1[] = " NetBSD/luna68k ";
static char lcd_boot_message2[] = " SX-9100/DT ";
@@ -148,7 +148,7 @@
/*
* open/close/write/ioctl
*/
-int
+static int
lcdopen(dev_t dev, int flags, int fmt, struct lwp *l)
{
int unit;
@@ -165,7 +165,7 @@
return 0;
}
-int
+static int
lcdclose(dev_t dev, int flags, int fmt, struct lwp *l)
{
int unit;
@@ -178,7 +178,7 @@
return 0;
}
-int
+static int
lcdwrite(dev_t dev, struct uio *uio, int flag)
{
int error;
@@ -201,7 +201,7 @@
return 0;
}
-int
+static int
lcdioctl(dev_t dev, u_long cmd, void *addr, int flag, struct lwp *l)
{
int val;
@@ -278,7 +278,7 @@
return EPASSTHROUGH;
}
-void
+static void
lcdbusywait(void)
{
struct pio *p1 = (struct pio *)OBIO_PIO1_BASE;
@@ -299,7 +299,7 @@
splx(s);
}
-void
+static void
lcdput(int cc)
{
struct pio *p1 = (struct pio *)OBIO_PIO1_BASE;
@@ -316,7 +316,7 @@
splx(s);
}
-void
+static void
lcdctrl(int cc)
{
struct pio *p1 = (struct pio *)OBIO_PIO1_BASE;
@@ -333,7 +333,7 @@
splx(s);
}
-void
+static void
lcdshow(char *s)
{
int cc;
@@ -342,7 +342,7 @@
lcdput(cc);
}
-void
+static void
greeting(void)
{
diff -r fb59b1955fa4 -r 77fbd5b01958 sys/arch/luna68k/dev/siotty.c
--- a/sys/arch/luna68k/dev/siotty.c Tue Dec 29 17:16:15 2020 +0000
+++ b/sys/arch/luna68k/dev/siotty.c Tue Dec 29 17:17:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siotty.c,v 1.46 2019/10/01 18:00:07 chs Exp $ */
+/* $NetBSD: siotty.c,v 1.47 2020/12/29 17:17:14 tsutsui Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.46 2019/10/01 18:00:07 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.47 2020/12/29 17:17:14 tsutsui Exp $");
#include "opt_ddb.h"
@@ -119,14 +119,14 @@
CFATTACH_DECL_NEW(siotty, sizeof(struct siotty_softc),
siotty_match, siotty_attach, NULL, NULL);
-dev_type_open(sioopen);
-dev_type_close(sioclose);
-dev_type_read(sioread);
-dev_type_write(siowrite);
-dev_type_ioctl(sioioctl);
-dev_type_stop(siostop);
-dev_type_tty(siotty);
-dev_type_poll(siopoll);
+static dev_type_open(sioopen);
+static dev_type_close(sioclose);
+static dev_type_read(sioread);
+static dev_type_write(siowrite);
+static dev_type_ioctl(sioioctl);
+static dev_type_stop(siostop);
+static dev_type_tty(siotty);
+static dev_type_poll(siopoll);
const struct cdevsw siotty_cdevsw = {
.d_open = sioopen,
@@ -367,7 +367,7 @@
splx(s);
}
-void
+static void
siostop(struct tty *tp, int flag)
{
int s;
@@ -490,7 +490,7 @@
/*-------------------- cdevsw[] interface --------------------*/
-int
+static int
sioopen(dev_t dev, int flag, int mode, struct lwp *l)
{
struct siotty_softc *sc;
@@ -545,7 +545,7 @@
return (*tp->t_linesw->l_open)(dev, tp);
}
-int
+static int
sioclose(dev_t dev, int flag, int mode, struct lwp *l)
{
struct siotty_softc *sc = device_lookup_private(&siotty_cd,minor(dev));
@@ -568,7 +568,7 @@
return ttyclose(tp);
}
-int
+static int
sioread(dev_t dev, struct uio *uio, int flag)
{
struct siotty_softc *sc;
@@ -579,7 +579,7 @@
return (*tp->t_linesw->l_read)(tp, uio, flag);
}
-int
+static int
siowrite(dev_t dev, struct uio *uio, int flag)
{
struct siotty_softc *sc;
@@ -590,7 +590,7 @@
return (*tp->t_linesw->l_write)(tp, uio, flag);
}
-int
+static int
siopoll(dev_t dev, int events, struct lwp *l)
{
struct siotty_softc *sc;
@@ -601,7 +601,7 @@
return (*tp->t_linesw->l_poll)(tp, events, l);
}
-int
+static int
sioioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
{
struct siotty_softc *sc;
@@ -657,7 +657,7 @@
}
/* ARSGUSED */
-struct tty *
+static struct tty *
siotty(dev_t dev)
{
struct siotty_softc *sc;
diff -r fb59b1955fa4 -r 77fbd5b01958 sys/arch/luna68k/dev/xp.c
--- a/sys/arch/luna68k/dev/xp.c Tue Dec 29 17:16:15 2020 +0000
+++ b/sys/arch/luna68k/dev/xp.c Tue Dec 29 17:17:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xp.c,v 1.5 2019/06/30 05:04:48 tsutsui Exp $ */
+/* $NetBSD: xp.c,v 1.6 2020/12/29 17:17:14 tsutsui Exp $ */
/*-
* Copyright (c) 2016 Izumi Tsutsui. All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xp.c,v 1.5 2019/06/30 05:04:48 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xp.c,v 1.6 2020/12/29 17:17:14 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -66,12 +66,12 @@
static int xp_match(device_t, cfdata_t, void *);
static void xp_attach(device_t, device_t, void *);
-dev_type_open(xp_open);
-dev_type_close(xp_close);
-dev_type_read(xp_read);
-dev_type_write(xp_write);
-dev_type_ioctl(xp_ioctl);
-dev_type_mmap(xp_mmap);
+static dev_type_open(xp_open);
+static dev_type_close(xp_close);
+static dev_type_read(xp_read);
+static dev_type_write(xp_write);
+static dev_type_ioctl(xp_ioctl);
+static dev_type_mmap(xp_mmap);
const struct cdevsw xp_cdevsw = {
.d_open = xp_open,
@@ -170,7 +170,7 @@
sc->sc_tas = XP_TAS_ADDR;
}
-int
+static int
xp_open(dev_t dev, int flags, int devtype, struct lwp *l)
{
struct xp_softc *sc;
@@ -190,7 +190,7 @@
return 0;
}
-int
+static int
xp_close(dev_t dev, int flags, int mode, struct lwp *l)
{
struct xp_softc *sc;
@@ -205,7 +205,7 @@
Home |
Main Index |
Thread Index |
Old Index