Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari Make local functions static.
details: https://anonhg.NetBSD.org/src/rev/885e88665ff5
branches: trunk
changeset: 962139:885e88665ff5
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 29 16:41:18 2019 +0000
description:
Make local functions static.
diffstat:
sys/arch/atari/atari/autoconf.c | 16 ++++++++--------
sys/arch/atari/dev/grf.c | 16 ++++++++--------
sys/arch/atari/dev/hdfd.c | 24 ++++++++++++------------
sys/arch/atari/dev/ite.c | 21 +++++++++++----------
sys/arch/atari/dev/ite_cc.c | 16 ++++++++--------
sys/arch/atari/dev/ite_et.c | 16 ++++++++--------
sys/arch/atari/dev/ncr5380.c | 12 ++++++------
sys/arch/atari/dev/wdc_mb.c | 12 ++++++------
sys/arch/atari/isa/fdcisa.c | 12 ++++++------
9 files changed, 73 insertions(+), 72 deletions(-)
diffs (truncated from 527 to 300 lines):
diff -r 7bdcad8e0eea -r 885e88665ff5 sys/arch/atari/atari/autoconf.c
--- a/sys/arch/atari/atari/autoconf.c Sat Jun 29 16:37:49 2019 +0000
+++ b/sys/arch/atari/atari/autoconf.c Sat Jun 29 16:41:18 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.66 2019/05/03 01:08:28 tsutsui Exp $ */
+/* $NetBSD: autoconf.c,v 1.67 2019/06/29 16:41:18 tsutsui Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.66 2019/05/03 01:08:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.67 2019/06/29 16:41:18 tsutsui Exp $");
#include "opt_md.h"
@@ -55,10 +55,10 @@
#include "ioconf.h"
static void findroot(void);
-int mbmatch(device_t, cfdata_t, void *);
-void mbattach(device_t, device_t, void *);
+static int mbmatch(device_t, cfdata_t, void *);
+static void mbattach(device_t, device_t, void *);
#if 0
-int mbprint(void *, const char *);
+static int mbprint(void *, const char *);
#endif
int atari_realconfig;
@@ -293,7 +293,7 @@
static int mb_attached;
-int
+static int
mbmatch(device_t parent, cfdata_t cf, void *aux)
{
@@ -308,7 +308,7 @@
/*
* "find" all the things that should be there.
*/
-void
+static void
mbattach(device_t parent, device_t self, void *aux)
{
@@ -332,7 +332,7 @@
}
#if 0
-int
+static int
mbprint(void *aux, const char *pnp)
{
diff -r 7bdcad8e0eea -r 885e88665ff5 sys/arch/atari/dev/grf.c
--- a/sys/arch/atari/dev/grf.c Sat Jun 29 16:37:49 2019 +0000
+++ b/sys/arch/atari/dev/grf.c Sat Jun 29 16:41:18 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grf.c,v 1.49 2014/07/25 08:10:32 dholland Exp $ */
+/* $NetBSD: grf.c,v 1.50 2019/06/29 16:41:18 tsutsui Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.49 2014/07/25 08:10:32 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.50 2019/06/29 16:41:18 tsutsui Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -90,9 +90,9 @@
int grfoff(dev_t);
int grfsinfo(dev_t, struct grfdyninfo *);
-int grfbusprint(void *, const char *);
-int grfbusmatch(device_t, cfdata_t, void *);
-void grfbusattach(device_t, device_t, void *);
+static int grfbusprint(void *, const char *);
+static int grfbusmatch(device_t, cfdata_t, void *);
+static void grfbusattach(device_t, device_t, void *);
/*
* pointers to grf drivers device structs
@@ -127,7 +127,7 @@
*/
static cfdata_t cfdata_gbus = NULL;
-int
+static int
grfbusmatch(device_t parent, cfdata_t cf, void *aux)
{
@@ -139,7 +139,7 @@
return 1; /* Always there */
}
-void
+static void
grfbusattach(device_t parent, device_t self, void *aux)
{
grf_auxp_t grf_auxp;
@@ -155,7 +155,7 @@
}
}
-int
+static int
grfbusprint(void *aux, const char *name)
{
diff -r 7bdcad8e0eea -r 885e88665ff5 sys/arch/atari/dev/hdfd.c
--- a/sys/arch/atari/dev/hdfd.c Sat Jun 29 16:37:49 2019 +0000
+++ b/sys/arch/atari/dev/hdfd.c Sat Jun 29 16:41:18 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdfd.c,v 1.84 2019/02/08 08:47:35 mrg Exp $ */
+/* $NetBSD: hdfd.c,v 1.85 2019/06/29 16:41:18 tsutsui Exp $ */
/*-
* Copyright (c) 1996 Leo Weppelman
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.84 2019/02/08 08:47:35 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.85 2019/06/29 16:41:18 tsutsui Exp $");
#include "opt_ddb.h"
@@ -202,9 +202,9 @@
};
/* controller driver configuration */
-int fdcprobe(device_t, cfdata_t, void *);
-int fdprint(void *, const char *);
-void fdcattach(device_t, device_t, void *);
+static int fdcprobe(device_t, cfdata_t, void *);
+static int fdprint(void *, const char *);
+static void fdcattach(device_t, device_t, void *);
CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
fdcprobe, fdcattach, NULL, NULL);
@@ -279,8 +279,8 @@
};
/* floppy driver configuration */
-int fdprobe(device_t, cfdata_t, void *);
-void fdattach(device_t, device_t, void *);
+static int fdprobe(device_t, cfdata_t, void *);
+static void fdattach(device_t, device_t, void *);
CFATTACH_DECL_NEW(hdfd, sizeof(struct fd_softc),
fdprobe, fdattach, NULL, NULL);
@@ -337,7 +337,7 @@
static struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t);
-int
+static int
fdcprobe(device_t parent, cfdata_t cf, void *aux)
{
static int fdc_matched = 0;
@@ -402,7 +402,7 @@
* Return QUIET (config_find ignores this if the device was configured) to
* avoid printing `fdN not configured' messages.
*/
-int
+static int
fdprint(void *aux, const char *fdc)
{
register struct fdc_attach_args *fa = aux;
@@ -412,7 +412,7 @@
return QUIET;
}
-void
+static void
fdcattach(device_t parent, device_t self, void *aux)
{
struct fdc_softc *fdc = device_private(self);
@@ -468,7 +468,7 @@
}
}
-int
+static int
fdprobe(device_t parent, cfdata_t cf, void *aux)
{
struct fdc_softc *fdc = device_private(parent);
@@ -521,7 +521,7 @@
/*
* Controller is working, and drive responded. Attach it.
*/
-void
+static void
fdattach(device_t parent, device_t self, void *aux)
{
struct fdc_softc *fdc = device_private(parent);
diff -r 7bdcad8e0eea -r 885e88665ff5 sys/arch/atari/dev/ite.c
--- a/sys/arch/atari/dev/ite.c Sat Jun 29 16:37:49 2019 +0000
+++ b/sys/arch/atari/dev/ite.c Sat Jun 29 16:41:18 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite.c,v 1.78 2018/09/03 16:29:24 riastradh Exp $ */
+/* $NetBSD: ite.c,v 1.79 2019/06/29 16:41:19 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.78 2018/09/03 16:29:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite.c,v 1.79 2019/06/29 16:41:19 tsutsui Exp $");
#include "opt_ddb.h"
@@ -135,10 +135,11 @@
static void ite_switch(int);
static void repeat_handler(void *);
-void iteputchar(int c, struct ite_softc *sc);
-void ite_putstr(const u_char * s, int len, dev_t dev);
-void iteattach(device_t, device_t, void *);
-int itematch(device_t, cfdata_t, void *);
+static void iteputchar(int c, struct ite_softc *sc);
+static void ite_putstr(const u_char * s, int len, dev_t dev);
+
+static void iteattach(device_t, device_t, void *);
+static int itematch(device_t, cfdata_t, void *);
/*
* Console specific types.
@@ -180,7 +181,7 @@
*/
static int cons_ite = -1;
-int
+static int
itematch(device_t parent, cfdata_t cf, void *aux)
{
@@ -197,7 +198,7 @@
return 1;
}
-void
+static void
iteattach(device_t parent, device_t self, void *aux)
{
struct grf_softc *gsc;
@@ -1324,7 +1325,7 @@
return n; /* don't "n ? n : 1" here, <CSI>0m != <CSI>1m ! */
}
-void
+static void
ite_putstr(const u_char *s, int len, dev_t dev)
{
struct ite_softc *sc;
@@ -1344,7 +1345,7 @@
}
-void
+static void
iteputchar(register int c, struct ite_softc *sc)
{
struct tty *kbd_tty;
diff -r 7bdcad8e0eea -r 885e88665ff5 sys/arch/atari/dev/ite_cc.c
--- a/sys/arch/atari/dev/ite_cc.c Sat Jun 29 16:37:49 2019 +0000
+++ b/sys/arch/atari/dev/ite_cc.c Sat Jun 29 16:41:18 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ite_cc.c,v 1.39 2018/09/03 16:29:24 riastradh Exp $ */
+/* $NetBSD: ite_cc.c,v 1.40 2019/06/29 16:41:19 tsutsui Exp $ */
/*
* Copyright (c) 1996 Leo Weppelman
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ite_cc.c,v 1.39 2018/09/03 16:29:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ite_cc.c,v 1.40 2019/06/29 16:41:19 tsutsui Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -105,9 +105,9 @@
/*
* grfcc config stuff
*/
-void grfccattach(device_t, device_t, void *);
-int grfccmatch(device_t, cfdata_t, void *);
-int grfccprint(void *, const char *);
+static void grfccattach(device_t, device_t, void *);
Home |
Main Index |
Thread Index |
Old Index