summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-03-28 07:58:53 +0000
committerbde <bde@FreeBSD.org>1995-03-28 07:58:53 +0000
commit4f64fe43e7186660d972f9eae509424f1addaa8a (patch)
treee153346dd5a88815c9c3e7f6748d7766c40a6b0d /sys/scsi
parent6ad7636d4a24ed5873a051888c579f5ef47677c4 (diff)
downloadFreeBSD-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/scsi')
-rw-r--r--sys/scsi/ch.c12
-rw-r--r--sys/scsi/scsi_base.c5
2 files changed, 12 insertions, 5 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c
index 6fd5bef..a4cd115e 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -2,7 +2,7 @@
* Written by grefen@?????
* Based on scsi drivers by Julian Elischer (julian@tfs.com)
*
- * $Id: ch.c,v 1.15 1995/03/04 20:50:45 dufault Exp $
+ * $Id: ch.c,v 1.16 1995/03/15 14:22:04 dufault Exp $
*/
#include <sys/types.h>
@@ -24,7 +24,13 @@
#include <scsi/scsiconf.h>
#include <sys/devconf.h>
-static errval ch_mode_sense(u_int32, u_int32);
+errval ch_getelem __P((u_int32 unit, short *stat, int type, u_int32 from,
+ void *data, u_int32 flags));
+errval ch_move __P((u_int32 unit, short *stat, u_int32 chm, u_int32 from,
+ u_int32 to, u_int32 flags));
+static errval ch_mode_sense __P((u_int32 unit, u_int32 flags));
+errval ch_position __P((u_int32 unit, short *stat, u_int32 chm, u_int32 to,
+ u_int32 flags));
#define CHRETRIES 2
@@ -278,7 +284,7 @@ ch_getelem(unit, stat, type, from, data, flags)
u_int32 unit, from, flags;
int type;
short *stat;
- char *data;
+ void *data; /* XXX `struct untagged *' - see chio.h */
{
struct scsi_read_element_status scsi_cmd;
char elbuf[32];
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 4cae78d..4b571e0 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.23 1995/03/15 14:44:01 dufault Exp $
+ * $Id: scsi_base.c,v 1.24 1995/03/21 11:21:01 dufault Exp $
*/
#define SPLSD splbio
@@ -542,7 +542,8 @@ retry:
break;
}
#ifdef BOUNCE_BUFFERS
- vm_bounce_kva_alloc_free(xs->data, (datalen + PAGE_SIZE - 1)/PAGE_SIZE, 0);
+ vm_bounce_kva_alloc_free((vm_offset_t) xs->data,
+ (datalen + PAGE_SIZE - 1)/PAGE_SIZE);
#else
free(xs->data, M_TEMP);
#endif
OpenPOWER on IntegriCloud