From 68bd39a8215f0f8a94a812dd041e1f0257eadb4c Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 27 Apr 2002 23:21:07 +0000 Subject: Jumbo commit to fix all compilation warnings on mvme68k (add prototypes, add casts, fix a few errors and typos in the process, etc) --- sys/arch/mvme68k/dev/sram.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'sys/arch/mvme68k/dev/sram.c') diff --git a/sys/arch/mvme68k/dev/sram.c b/sys/arch/mvme68k/dev/sram.c index a06cdf4f2b7..85aa2ea2ab0 100644 --- a/sys/arch/mvme68k/dev/sram.c +++ b/sys/arch/mvme68k/dev/sram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sram.c,v 1.8 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: sram.c,v 1.9 2002/04/27 23:21:05 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -32,18 +32,20 @@ */ #include -#include #include #include #include #include #include - #include -#include + #include +#include +#include #include +#include + #include "mc.h" #if NMC > 0 @@ -75,14 +77,13 @@ srammatch(parent, vcf, args) struct device *parent; void *vcf, *args; { - struct cfdata *cf = vcf; struct confargs *ca = args; if (cputyp == CPU_147) return (0); if (ca->ca_vaddr == (void *)-1) - return (!badpaddr(ca->ca_paddr, 1)); - return (!badvaddr(ca->ca_vaddr, 1)); + return (!badpaddr((paddr_t)ca->ca_paddr, 1)); + return (!badvaddr((vaddr_t)ca->ca_vaddr, 1)); } void @@ -93,7 +94,6 @@ sramattach(parent, self, args) struct confargs *ca = args; struct sramsoftc *sc = (struct sramsoftc *)self; struct mcreg *mc; - int i; switch (cputyp) { #ifdef MVME162 @@ -148,9 +148,10 @@ sramattach(parent, self, args) /*ARGSUSED*/ int -sramopen(dev, flag, mode) +sramopen(dev, flag, mode, p) dev_t dev; int flag, mode; + struct proc *p; { if (minor(dev) >= sram_cd.cd_ndevs || sram_cd.cd_devs[minor(dev)] == NULL) @@ -160,9 +161,10 @@ sramopen(dev, flag, mode) /*ARGSUSED*/ int -sramclose(dev, flag, mode) +sramclose(dev, flag, mode, p) dev_t dev; int flag, mode; + struct proc *p; { return (0); @@ -171,9 +173,10 @@ sramclose(dev, flag, mode) /*ARGSUSED*/ int sramioctl(dev, cmd, data, flag, p) - dev_t dev; + dev_t dev; + u_long cmd; caddr_t data; - int cmd, flag; + int flag; struct proc *p; { int unit = minor(dev); -- cgit v1.2.3