summaryrefslogtreecommitdiff
path: root/sys/arch/atari/dev/hdfd.c
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2022-06-26 06:25:09 +0000
committertsutsui <tsutsui@NetBSD.org>2022-06-26 06:25:09 +0000
commitf145ee151dc9d3e9ea9fb493c27c93cfa5add1e7 (patch)
tree959bebaf53c1d15eb1184e173350d6eb22202c7c /sys/arch/atari/dev/hdfd.c
parentb5aeeca724b2a135d6ec538c636d497a89570c1e (diff)
Make local devsw functions static.
No visible regression on TT030.
Diffstat (limited to 'sys/arch/atari/dev/hdfd.c')
-rw-r--r--sys/arch/atari/dev/hdfd.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/atari/dev/hdfd.c b/sys/arch/atari/dev/hdfd.c
index fe93749bb98..f2d0cc16185 100644
--- a/sys/arch/atari/dev/hdfd.c
+++ b/sys/arch/atari/dev/hdfd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hdfd.c,v 1.89 2021/08/07 16:18:46 thorpej Exp $ */
+/* $NetBSD: hdfd.c,v 1.90 2022/06/26 06:25:09 tsutsui Exp $ */
/*-
* Copyright (c) 1996 Leo Weppelman
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.89 2021/08/07 16:18:46 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.90 2022/06/26 06:25:09 tsutsui Exp $");
#include "opt_ddb.h"
@@ -131,12 +131,12 @@ __KERNEL_RCSID(0, "$NetBSD: hdfd.c,v 1.89 2021/08/07 16:18:46 thorpej Exp $");
/*
* {b,c}devsw[] function prototypes
*/
-dev_type_open(fdopen);
-dev_type_close(fdclose);
-dev_type_read(fdread);
-dev_type_write(fdwrite);
-dev_type_ioctl(fdioctl);
-dev_type_strategy(fdstrategy);
+static dev_type_open(fdopen);
+static dev_type_close(fdclose);
+static dev_type_read(fdread);
+static dev_type_write(fdwrite);
+static dev_type_ioctl(fdioctl);
+static dev_type_strategy(fdstrategy);
volatile u_char *fdio_addr;
@@ -602,7 +602,7 @@ fd_dev_to_type(struct fd_softc *fd, dev_t dev)
return type ? &fd_types[type - 1] : fd->sc_deftype;
}
-void
+static void
fdstrategy(struct buf *bp)
{
struct fd_softc *fd = device_lookup_private(&hdfd_cd, FDUNIT(bp->b_dev));
@@ -717,14 +717,14 @@ fdfinish(struct fd_softc *fd, struct buf *bp)
fdc->sc_state = DEVIDLE;
}
-int
+static int
fdread(dev_t dev, struct uio *uio, int flags)
{
return physio(fdstrategy, NULL, dev, B_READ, minphys, uio);
}
-int
+static int
fdwrite(dev_t dev, struct uio *uio, int flags)
{
@@ -815,7 +815,7 @@ out_fdc(u_char x)
return 0;
}
-int
+static int
fdopen(dev_t dev, int flags, int mode, struct lwp *l)
{
struct fd_softc *fd;
@@ -840,7 +840,7 @@ fdopen(dev_t dev, int flags, int mode, struct lwp *l)
return 0;
}
-int
+static int
fdclose(dev_t dev, int flags, int mode, struct lwp *l)
{
struct fd_softc *fd = device_lookup_private(&hdfd_cd, FDUNIT(dev));
@@ -1289,7 +1289,7 @@ fdcretry(struct fdc_softc *fdc)
fdc->sc_errors++;
}
-int
+static int
fdioctl(dev_t dev, u_long cmd, void *addr, int flag, struct lwp *l)
{
struct fd_softc *fd;