summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-08 20:59:39 +0000
committerderaadt <deraadt@openbsd.org>2007-05-08 20:59:39 +0000
commit5398df4b524c3c2fa17bd398adb0e7545d4608b5 (patch)
tree161aa440108c712679501c38ab4b6f757bc2753b
parentwildcard is nowhere used anymore. Figured out by deraadt@ (diff)
downloadwireguard-openbsd-5398df4b524c3c2fa17bd398adb0e7545d4608b5.tar.xz
wireguard-openbsd-5398df4b524c3c2fa17bd398adb0e7545d4608b5.zip
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.
-rw-r--r--sys/dev/isa/fd.c6
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;