Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/dev Make local devsw functions static.



details:   https://anonhg.NetBSD.org/src/rev/f563f2058dfc
branches:  trunk
changeset: 368156:f563f2058dfc
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jun 26 06:25:09 2022 +0000

description:
Make local devsw functions static.

No visible regression on TT030.

diffstat:

 sys/arch/atari/dev/clock.c |  20 ++++++++++----------
 sys/arch/atari/dev/fd.c    |  28 ++++++++++++++--------------
 sys/arch/atari/dev/grf.c   |  20 ++++++++++----------
 sys/arch/atari/dev/hdfd.c  |  28 ++++++++++++++--------------
 sys/arch/atari/dev/ite.c   |  32 ++++++++++++++++----------------
 sys/arch/atari/dev/lpt.c   |  20 ++++++++++----------
 sys/arch/atari/dev/ms.c    |  28 ++++++++++++++--------------
 sys/arch/atari/dev/ser.c   |  36 ++++++++++++++++++------------------
 sys/arch/atari/dev/view.c  |  20 ++++++++++----------
 sys/arch/atari/dev/zs.c    |  36 ++++++++++++++++++------------------
 10 files changed, 134 insertions(+), 134 deletions(-)

diffs (truncated from 873 to 300 lines):

diff -r 264f22f51cf0 -r f563f2058dfc sys/arch/atari/dev/clock.c
--- a/sys/arch/atari/dev/clock.c        Sun Jun 26 06:02:28 2022 +0000
+++ b/sys/arch/atari/dev/clock.c        Sun Jun 26 06:25:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.62 2020/07/03 16:23:03 maxv Exp $  */
+/*     $NetBSD: clock.c,v 1.63 2022/06/26 06:25:09 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.62 2020/07/03 16:23:03 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.63 2022/06/26 06:25:09 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -107,10 +107,10 @@
  */
 #define        RTC_OPEN        1
 
-dev_type_open(rtcopen);
-dev_type_close(rtcclose);
-dev_type_read(rtcread);
-dev_type_write(rtcwrite);
+static dev_type_open(rtcopen);
+static dev_type_close(rtcclose);
+static dev_type_read(rtcread);
+static dev_type_write(rtcwrite);
 
 static void    clockattach(device_t, device_t, void *);
 static int     clockmatch(device_t, cfdata_t, void *);
@@ -482,7 +482,7 @@
 /***********************************************************************
  *                   RTC-device support                                       *
  ***********************************************************************/
-int
+static int
 rtcopen(dev_t dev, int flag, int mode, struct lwp *l)
 {
        int                     unit = minor(dev);
@@ -498,7 +498,7 @@
        return 0;
 }
 
-int
+static int
 rtcclose(dev_t dev, int flag, int mode, struct lwp *l)
 {
        int                     unit = minor(dev);
@@ -508,7 +508,7 @@
        return 0;
 }
 
-int
+static int
 rtcread(dev_t dev, struct uio *uio, int flags)
 {
        mc_todregs              clkregs;
@@ -546,7 +546,7 @@
        return result;
 }
 
-int
+static int
 rtcwrite(dev_t dev, struct uio *uio, int flags)
 {
        mc_todregs              clkregs;
diff -r 264f22f51cf0 -r f563f2058dfc sys/arch/atari/dev/fd.c
--- a/sys/arch/atari/dev/fd.c   Sun Jun 26 06:02:28 2022 +0000
+++ b/sys/arch/atari/dev/fd.c   Sun Jun 26 06:25:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.92 2022/05/15 20:37:51 andvar Exp $   */
+/*     $NetBSD: fd.c,v 1.93 2022/06/26 06:25:09 tsutsui Exp $  */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.92 2022/05/15 20:37:51 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.93 2022/06/26 06:25:09 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -193,12 +193,12 @@
 
 typedef void   (*FPV)(void *);
 
-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);
 
 /*
  * Private drive functions....
@@ -424,7 +424,7 @@
        disk_attach(&sc->dkdev);
 }
 
-int
+static int
 fdioctl(dev_t dev, u_long cmd, void * addr, int flag, struct lwp *l)
 {
        struct fd_softc *sc;
@@ -465,7 +465,7 @@
  *     partition 0: 360Kb
  *     partition 1: 780Kb
  */
-int
+static int
 fdopen(dev_t dev, int flags, int devtype, struct lwp *l)
 {
        struct fd_softc *sc;
@@ -564,7 +564,7 @@
        return 0;
 }
 
-int
+static int
 fdclose(dev_t dev, int flags, int devtype, struct lwp *l)
 {
        struct fd_softc *sc;
@@ -580,7 +580,7 @@
        return 0;
 }
 
-void
+static void
 fdstrategy(struct buf *bp)
 {
        struct fd_softc *sc;
@@ -648,14 +648,14 @@
        biodone(bp);
 }
 
-int
+static int
 fdread(dev_t dev, struct uio *uio, int flags)
 {
 
        return physio(fdstrategy, NULL, dev, B_READ, fdminphys, uio);
 }
 
-int
+static int
 fdwrite(dev_t dev, struct uio *uio, int flags)
 {
 
diff -r 264f22f51cf0 -r f563f2058dfc sys/arch/atari/dev/grf.c
--- a/sys/arch/atari/dev/grf.c  Sun Jun 26 06:02:28 2022 +0000
+++ b/sys/arch/atari/dev/grf.c  Sun Jun 26 06:25:09 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf.c,v 1.53 2021/08/07 16:18:46 thorpej Exp $ */
+/*     $NetBSD: grf.c,v 1.54 2022/06/26 06:25:09 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1995 Leo Weppelman
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.53 2021/08/07 16:18:46 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.54 2022/06/26 06:25:09 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -102,10 +102,10 @@
 CFATTACH_DECL_NEW(grfbus, 0,
     grfbusmatch, grfbusattach, NULL, NULL);
 
-dev_type_open(grfopen);
-dev_type_close(grfclose);
-dev_type_ioctl(grfioctl);
-dev_type_mmap(grfmmap);
+static dev_type_open(grfopen);
+static dev_type_close(grfclose);
+static dev_type_ioctl(grfioctl);
+static dev_type_mmap(grfmmap);
 
 const struct cdevsw grf_cdevsw = {
        .d_open = grfopen,
@@ -166,7 +166,7 @@
 }
 
 /*ARGSUSED*/
-int
+static int
 grfopen(dev_t dev, int flags, int devtype, struct lwp *l)
 {
        struct grf_softc *gp;
@@ -189,7 +189,7 @@
 }
 
 /*ARGSUSED*/
-int
+static int
 grfclose(dev_t dev, int flags, int mode, struct lwp *l)
 {
        struct grf_softc *gp;
@@ -201,7 +201,7 @@
 }
 
 /*ARGSUSED*/
-int
+static int
 grfioctl(dev_t dev, u_long cmd, void * data, int flag, struct lwp *l)
 {
        struct grf_softc        *gp;
@@ -266,7 +266,7 @@
  * map the contents of a graphics display card into process' 
  * memory space.
  */
-paddr_t
+static paddr_t
 grfmmap(dev_t dev, off_t off, int prot)
 {
        struct grf_softc        *gp;
diff -r 264f22f51cf0 -r f563f2058dfc sys/arch/atari/dev/hdfd.c
--- a/sys/arch/atari/dev/hdfd.c Sun Jun 26 06:02:28 2022 +0000
+++ b/sys/arch/atari/dev/hdfd.c Sun Jun 26 06:25:09 2022 +0000
@@ -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 @@
 /*
  * {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 @@
        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 @@
        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 @@
        return 0;
 }
 
-int
+static int
 fdopen(dev_t dev, int flags, int mode, struct lwp *l)
 {
        struct fd_softc *fd;



Home | Main Index | Thread Index | Old Index