Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/stand/common Make local functions and variabl...



details:   https://anonhg.NetBSD.org/src/rev/956d002708c0
branches:  trunk
changeset: 372392:956d002708c0
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Nov 21 15:36:29 2022 +0000

description:
Make local functions and variables static.

diffstat:

 sys/arch/hp300/stand/common/if_le.c |  40 ++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diffs (145 lines):

diff -r 0bcbd3658f7e -r 956d002708c0 sys/arch/hp300/stand/common/if_le.c
--- a/sys/arch/hp300/stand/common/if_le.c       Mon Nov 21 15:05:44 2022 +0000
+++ b/sys/arch/hp300/stand/common/if_le.c       Mon Nov 21 15:36:29 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le.c,v 1.13 2014/06/21 02:02:40 tsutsui Exp $       */
+/*     $NetBSD: if_le.c,v 1.14 2022/11/21 15:36:29 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1993 Adam Glass
@@ -72,12 +72,12 @@
        int     le_bonus;
 };
 
-int le_probe(struct netif *, void *);
-int le_match(struct netif *, void *);
-void le_init(struct iodesc *, void *);
-int le_get(struct iodesc *, void *, size_t, saseconds_t);
-int le_put(struct iodesc *, void *, size_t);
-void le_end(struct netif *);
+static int le_probe(struct netif *, void *);
+static int le_match(struct netif *, void *);
+static void le_init(struct iodesc *, void *);
+static int le_get(struct iodesc *, void *, size_t, saseconds_t);
+static int le_put(struct iodesc *, void *, size_t);
+static void le_end(struct netif *);
 
 static inline void lewrcsr(struct le_softc *, uint16_t, uint16_t);
 static inline uint16_t lerdcsr(struct le_softc *, uint16_t);
@@ -92,7 +92,7 @@
 int le_debug = 0;
 #endif
 
-struct le_sel le0conf[] = {
+static struct le_sel le0conf[] = {
 /* offsets for:           ID   REGS     MEM   NVRAM    le_heat le_bonus*/
 {                  0,  0x4000, 0x8000, 0xC008, 1,      10   }
 };
@@ -100,7 +100,7 @@
 
 extern struct netif_stats      le_stats[];
 
-struct netif_dif le_ifs[] = {
+static struct netif_dif le_ifs[] = {
 /*     dif_unit        dif_nsel        dif_stats       dif_private     */
 {      0,              NLE0CONF,       &le_stats[0],   le0conf,        },
 };
@@ -120,7 +120,7 @@
        NLE_IFS                 /* netif_nifs */
 };
 
-struct le_softc le_softc[NLE];
+static struct le_softc le_softc[NLE];
 
 static inline void
 lewrcsr(struct le_softc *sc, uint16_t port, uint16_t val)
@@ -211,7 +211,7 @@
        }
 }
 
-int
+static int
 le_match(struct netif *nif, void *machdep_hint)
 {
        struct le_sel *sels;
@@ -232,7 +232,7 @@
        return rv;
 }
 
-int
+static int
 le_probe(struct netif *nif, void *machdep_hint)
 {
 #if 0
@@ -307,7 +307,7 @@
 #define le_mem_summary(u)
 #endif
 
-void
+static void
 le_error(int unit, char *str, uint16_t stat)
 {
 
@@ -328,7 +328,7 @@
        ((u_long)(a) - (u_long)sc->sc_mem)
 
 /* LANCE initialization block set up. */
-void
+static void
 lememinit(struct le_softc *sc)
 {
        int i;
@@ -388,7 +388,7 @@
        }
 }
 
-void
+static void
 le_reset(int unit, u_char *myea)
 {
        struct le_softc *sc = &le_softc[unit];
@@ -450,7 +450,7 @@
        le_mem_summary(unit);
 }
 
-int
+static int
 le_poll(struct iodesc *desc, void *pkt, int len)
 {
        int unit = /*nif->nif_unit*/0;
@@ -525,7 +525,7 @@
        return length;
 }
 
-int
+static int
 le_put(struct iodesc *desc, void *pkt, size_t len)
 {
        int unit = /*nif->nif_unit*/0;
@@ -627,7 +627,7 @@
 }
 
 
-int
+static int
 le_get(struct iodesc *desc, void *pkt, size_t len, saseconds_t timeout)
 {
        satime_t t;
@@ -640,7 +640,7 @@
        return cc;
 }
 
-void
+static void
 le_init(struct iodesc *desc, void *machdep_hint)
 {
        struct netif *nif = desc->io_netif;
@@ -658,7 +658,7 @@
        le_reset(unit, desc->myea);
 }
 
-void
+static void
 le_end(struct netif *nif)
 {
        int unit = nif->nif_unit;



Home | Main Index | Thread Index | Old Index