diff options
author | bde <bde@FreeBSD.org> | 1995-03-28 07:58:53 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-03-28 07:58:53 +0000 |
commit | 4f64fe43e7186660d972f9eae509424f1addaa8a (patch) | |
tree | e153346dd5a88815c9c3e7f6748d7766c40a6b0d /sys/dev | |
parent | 6ad7636d4a24ed5873a051888c579f5ef47677c4 (diff) | |
download | FreeBSD-src-4f64fe43e7186660d972f9eae509424f1addaa8a.zip FreeBSD-src-4f64fe43e7186660d972f9eae509424f1addaa8a.tar.gz |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) that I didn't notice when I fixed
"all" such warnings before.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cy/cy.c | 4 | ||||
-rw-r--r-- | sys/dev/cy/cy_isa.c | 4 | ||||
-rw-r--r-- | sys/dev/ep/if_ep.c | 6 | ||||
-rw-r--r-- | sys/dev/ie/if_ie.c | 4 | ||||
-rw-r--r-- | sys/dev/joy/joy.c | 6 | ||||
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 5 | ||||
-rw-r--r-- | sys/dev/mcd/mcd.c | 7 | ||||
-rw-r--r-- | sys/dev/mse/mse.c | 4 |
8 files changed, 31 insertions, 9 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index f9defd0..03e561c 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.3 1995/02/25 20:09:12 pst Exp $ + * $Id: cy.c,v 1.4 1995/02/28 00:20:52 pst Exp $ */ /* @@ -88,6 +88,8 @@ #include <i386/isa/isa_device.h> #include <i386/isa/ic/cd1400.h> +#else +#include <machine/clock.h> #define RxFifoThreshold 3 /* 3 characters (out of 12) in the receive * FIFO before an interrupt is generated */ diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index f9defd0..03e561c 100644 --- a/sys/dev/cy/cy_isa.c +++ b/sys/dev/cy/cy_isa.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.3 1995/02/25 20:09:12 pst Exp $ + * $Id: cy.c,v 1.4 1995/02/28 00:20:52 pst Exp $ */ /* @@ -88,6 +88,8 @@ #include <i386/isa/isa_device.h> #include <i386/isa/ic/cd1400.h> +#else +#include <machine/clock.h> #define RxFifoThreshold 3 /* 3 characters (out of 12) in the receive * FIFO before an interrupt is generated */ diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 18dbcb4..4f2175f 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_ep.c,v 1.20 1995/03/23 06:53:38 davidg Exp $ + * $Id: if_ep.c,v 1.21 1995/03/23 07:31:08 gibbs Exp $ */ /* @@ -79,6 +79,10 @@ #include <net/bpfdesc.h> #endif +#if defined(__FreeBSD__) +#include <machine/clock.h> +#endif + #include <i386/isa/isa.h> #include <i386/isa/isa_device.h> #include <i386/isa/icu.h> diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index 7bb5a2f..095725f 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -43,7 +43,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ie.c,v 1.20 1994/12/22 21:56:09 wollman Exp $ + * $Id: if_ie.c,v 1.21 1995/03/19 14:28:45 davidg Exp $ */ /* @@ -137,6 +137,8 @@ iomem, and to make 16-pointers, we subtract iomem and and with 0xffff. #include <netns/ns_if.h> #endif +#include <machine/clock.h> + #include <i386/isa/isa.h> #include <i386/isa/isa_device.h> #include <i386/isa/ic/i82586.h> diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c index 5fae0d7..942b45a 100644 --- a/sys/dev/joy/joy.c +++ b/sys/dev/joy/joy.c @@ -32,9 +32,9 @@ #include <errno.h> -#include <sys/types.h> +#include <sys/param.h> +#include <sys/systm.h> -#include <machine/cpufunc.h> #include <machine/joystick.h> #include <i386/isa/isa.h> @@ -158,7 +158,7 @@ joyread (dev_t dev, struct uio *uio, int flag) state >>= 4; c.b1 = ~state & 1; c.b2 = ~(state >> 1) & 1; - return uiomove (&c, sizeof(struct joystick), uio); + return uiomove ((caddr_t)&c, sizeof(struct joystick), uio); } int joyioctl (dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) { diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index b482f5f..305b7fc 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -128,6 +128,11 @@ struct lnc_softc { } lnc_softc[NLNC]; /* Function prototypes */ +int bicc_probe(struct isa_device *); +int depca_probe(struct isa_device *); +int lance_probe(int); +int ne2100_probe(struct isa_device *); +int pcnet_probe(int); void lnc_init(int); void lnc_start(struct ifnet *); int lnc_ioctl(struct ifnet *, int, caddr_t); diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index d04f08e..338fabf 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -40,7 +40,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.38 1995/02/22 02:12:10 ache Exp $ + * $Id: mcd.c,v 1.39 1995/02/23 17:40:16 ache Exp $ */ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -52,6 +52,7 @@ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; #include <sys/conf.h> #include <sys/file.h> #include <sys/buf.h> +#include <sys/proc.h> #include <sys/stat.h> #include <sys/uio.h> #include <sys/ioctl.h> @@ -61,6 +62,10 @@ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; #include <sys/disklabel.h> #include <sys/devconf.h> +#include <machine/clock.h> + +#include <i386/i386/cons.h> + #include <i386/isa/isa.h> #include <i386/isa/isa_device.h> #include <i386/isa/mcdreg.h> diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c index f8e7cc0..de7b26d 100644 --- a/sys/dev/mse/mse.c +++ b/sys/dev/mse/mse.c @@ -11,7 +11,7 @@ * this software for any purpose. It is provided "as is" * without express or implied warranty. * - * $Id: mse.c,v 1.8 1994/10/23 21:27:31 wollman Exp $ + * $Id: mse.c,v 1.9 1994/11/08 05:41:34 jkh Exp $ */ /* * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and @@ -57,6 +57,8 @@ #include <sys/uio.h> #include <sys/devconf.h> +#include <machine/clock.h> + #include <i386/isa/isa_device.h> #include <i386/isa/icu.h> |