Module Name: src Committed By: plunky Date: Sun Apr 24 18:54:41 UTC 2011
Modified Files: src/sys/dev/isa: if_ec.c Log Message: use static inline for ec_readmem(), it is not referenced elsewhere (avoids C99 vs GNU semantics for external inline functions) To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/dev/isa/if_ec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/isa/if_ec.c diff -u src/sys/dev/isa/if_ec.c:1.33 src/sys/dev/isa/if_ec.c:1.34 --- src/sys/dev/isa/if_ec.c:1.33 Mon Apr 28 20:23:52 2008 +++ src/sys/dev/isa/if_ec.c Sun Apr 24 18:54:41 2011 @@ -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;