diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-07-26 05:25:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-07-26 05:25:22 +0000 |
commit | df9a0b4243cae6b9c7dff4b4874110bd7539b0ab (patch) | |
tree | 8eaf70f91c063e99a7e6090497695d668d78f0f3 /sys/dev/isa/if_ec.c | |
parent | 3d16dc177bdefff9e0cc7c8ec980f9c5d36a8b37 (diff) |
we_readmem() and ec_readmem() are inlined, but they can also be static.
Diffstat (limited to 'sys/dev/isa/if_ec.c')
-rw-r--r-- | sys/dev/isa/if_ec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/if_ec.c b/sys/dev/isa/if_ec.c index b5b06851978..b2d45be1e18 100644 --- a/sys/dev/isa/if_ec.c +++ b/sys/dev/isa/if_ec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ec.c,v 1.16 2015/11/24 17:11:39 mpi Exp $ */ +/* $OpenBSD: if_ec.c,v 1.17 2017/07/26 05:25:21 deraadt Exp $ */ /* $NetBSD: if_ec.c,v 1.9 1998/07/05 06:49:12 jonathan Exp $ */ /*- @@ -110,7 +110,7 @@ void ec_read_hdr(struct dp8390_softc *, int, struct dp8390_ring *); 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 __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, @@ -539,7 +539,7 @@ ec_test_mem(struct dp8390_softc *sc) * 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, u_int8_t *to, int len) { bus_space_tag_t memt = esc->sc_dp8390.sc_buft; |