Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa use static inline for ec_readmem(), it is not re...



details:   https://anonhg.NetBSD.org/src/rev/fae2eaf7505a
branches:  trunk
changeset: 764463:fae2eaf7505a
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun Apr 24 18:54:41 2011 +0000

description:
use static inline for ec_readmem(), it is not referenced elsewhere

(avoids C99 vs GNU semantics for external inline functions)

diffstat:

 sys/dev/isa/if_ec.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 1008385e21ff -r fae2eaf7505a sys/dev/isa/if_ec.c
--- a/sys/dev/isa/if_ec.c       Sun Apr 24 18:53:55 2011 +0000
+++ b/sys/dev/isa/if_ec.c       Sun Apr 24 18:54:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ec.c,v 1.33 2008/04/28 20:23:52 martin Exp $        */
+/*     $NetBSD: if_ec.c,v 1.34 2011/04/24 18:54:41 plunky Exp $        */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ec.c,v 1.33 2008/04/28 20:23:52 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ec.c,v 1.34 2011/04/24 18:54:41 plunky Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -106,8 +106,6 @@
 int    ec_fake_test_mem(struct dp8390_softc *);
 int    ec_test_mem(struct dp8390_softc *);
 
-inline void ec_readmem(struct ec_softc *, int, u_int8_t *, int);
-
 static const int ec_iobase[] = {
        0x2e0, 0x2a0, 0x280, 0x250, 0x350, 0x330, 0x310, 0x300,
 };
@@ -549,7 +547,7 @@
  * copy 'len' from NIC to host using shared memory.  The 'len' is rounded
  * up to a word - ok as long as mbufs are word-sized.
  */
-inline void
+static inline void
 ec_readmem(struct ec_softc *esc, int from, uint8_t *to, int len)
 {
        bus_space_tag_t memt = esc->sc_dp8390.sc_buft;



Home | Main Index | Thread Index | Old Index