diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-08 20:59:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-08 20:59:40 +0000 |
commit | 137ae27d67b5c55b00a6c986ed33850da12699e9 (patch) | |
tree | 18ba34eadc8bfd96adeb392bb8bd34d166d85ec1 /sys/dev | |
parent | a4ce6af6868cb228dc42d7854c1ff7f7bb366d59 (diff) |
2nd one found: If you really wish to make a function __inline (which will
be called once), please also make it static so that the compiler does not
generate a 2nd one to export to outside callers! that is a stupid waste
of space.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index 20fe855ef50..c46967b86ad 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.61 2007/04/27 22:20:01 krw Exp $ */ +/* $OpenBSD: fd.c,v 1.62 2007/05/08 20:59:39 deraadt Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -151,7 +151,7 @@ void fd_motor_off(void *arg); void fd_motor_on(void *arg); void fdfinish(struct fd_softc *fd, struct buf *bp); int fdformat(dev_t, struct fd_formb *, struct proc *); -__inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t); +static __inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t); void fdretry(struct fd_softc *); void fdtimeout(void *); @@ -327,7 +327,7 @@ fd_nvtotype(fdc, nvraminfo, drive) #endif } -__inline struct fd_type * +static __inline struct fd_type * fd_dev_to_type(fd, dev) struct fd_softc *fd; dev_t dev; |