diff options
| author | matt <matt@NetBSD.org> | 2001-08-25 19:05:04 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2001-08-25 19:05:04 +0000 |
| commit | 3ec769dff664e378eb22716f08231b4eb9ec91de (patch) | |
| tree | c2b494b5a2fc7a9ddb95729792f3c401d8f3f8af /sys/dev | |
| parent | d38ac3477c7a6058e3315fa61df3a3446d38e989 (diff) | |
Make this compile with -Wmissing-prototypes by adding appropriate
cdev_decl, bdev_decl, cons_decl
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ofw/ofcons.c | 5 | ||||
| -rw-r--r-- | sys/dev/ofw/ofdisk.c | 12 | ||||
| -rw-r--r-- | sys/dev/ofw/ofrtc.c | 11 |
3 files changed, 21 insertions, 7 deletions
diff --git a/sys/dev/ofw/ofcons.c b/sys/dev/ofw/ofcons.c index 0b850d6c3f7..9c22e8db582 100644 --- a/sys/dev/ofw/ofcons.c +++ b/sys/dev/ofw/ofcons.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofcons.c,v 1.13 2001/05/02 10:32:10 scw Exp $ */ +/* $NetBSD: ofcons.c,v 1.14 2001/08/25 19:05:04 matt Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -54,6 +54,9 @@ struct ofcons_softc { #define OFBURSTLEN 128 /* max number of bytes to write in one chunk */ +cdev_decl(ofcons_); +cons_decl(ofcons_); + static int stdin, stdout; static int ofcons_match __P((struct device *, struct cfdata *, void *)); diff --git a/sys/dev/ofw/ofdisk.c b/sys/dev/ofw/ofdisk.c index 68d10b522e7..3a123759b22 100644 --- a/sys/dev/ofw/ofdisk.c +++ b/sys/dev/ofw/ofdisk.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofdisk.c,v 1.15 2001/01/08 02:03:47 fvdl Exp $ */ +/* $NetBSD: ofdisk.c,v 1.16 2001/08/25 19:05:04 matt Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -34,6 +34,7 @@ #include <sys/param.h> #include <sys/buf.h> #include <sys/device.h> +#include <sys/conf.h> #include <sys/disklabel.h> #include <sys/disk.h> #include <sys/fcntl.h> @@ -55,6 +56,9 @@ struct ofdisk_softc { char sc_name[16]; }; +bdev_decl(ofdisk_); +cdev_decl(ofdisk_); + /* sc_flags */ #define OFDF_ISFLOPPY 0x01 /* we are a floppy drive */ @@ -289,17 +293,19 @@ ofminphys(bp) } int -ofdisk_read(dev, uio) +ofdisk_read(dev, uio, flags) dev_t dev; struct uio *uio; + int flags; { return physio(ofdisk_strategy, NULL, dev, B_READ, ofminphys, uio); } int -ofdisk_write(dev, uio) +ofdisk_write(dev, uio, flags) dev_t dev; struct uio *uio; + int flags; { return physio(ofdisk_strategy, NULL, dev, B_WRITE, ofminphys, uio); } diff --git a/sys/dev/ofw/ofrtc.c b/sys/dev/ofw/ofrtc.c index adf8a54c9f1..1efb44eac75 100644 --- a/sys/dev/ofw/ofrtc.c +++ b/sys/dev/ofw/ofrtc.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofrtc.c,v 1.7 1998/03/21 02:05:17 cgd Exp $ */ +/* $NetBSD: ofrtc.c,v 1.8 2001/08/25 19:05:04 matt Exp $ */ /* * Copyright (C) 1996 Wolfgang Solfrank. @@ -34,9 +34,12 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/device.h> +#include <sys/conf.h> #include <dev/ofw/openfirm.h> +cdev_decl(ofrtc_); + struct ofrtc_softc { struct device sc_dev; int sc_phandle; @@ -94,10 +97,11 @@ ofrtc_attach(parent, self, aux) } int -ofrtc_open(dev, flags, fmt) +ofrtc_open(dev, flags, fmt, p) dev_t dev; int flags; int fmt; + struct proc *p; { struct ofrtc_softc *of; int unit = minor(dev); @@ -129,10 +133,11 @@ ofrtc_open(dev, flags, fmt) } int -ofrtc_close(dev, flags, fmt) +ofrtc_close(dev, flags, fmt, p) dev_t dev; int flags; int fmt; + struct proc *p; { return 0; } |
