Fixed compile error.

This commit is contained in:
Yoshihiro Takahashi 2003-06-07 08:18:25 +00:00
parent 10f7bcc5a8
commit edbced73de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115943
2 changed files with 4 additions and 4 deletions

View File

@ -66,6 +66,7 @@
#include <sys/conf.h>
#include <sys/bus.h>
#include <sys/disk.h>
#include <geom/geom_disk.h>
#include <sys/bio.h>
#include <sys/malloc.h>
#include <machine/bootinfo.h>

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 1998, 1999 Sen Schmidt
* Copyright (c) 1998, 1999 Sen Schmidt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -77,7 +77,6 @@ static int acdnlun = 0; /* Number of configured drives */
int acdattach(struct atapi *, int, struct atapi_params *, int);
static struct acd *acd_init_lun(struct atapi *, int, struct atapi_params *, int);
struct devstat *);
static void acd_start(struct acd *);
static void acd_done(struct acd *, struct bio *, int, struct atapires);
static int acd_read_toc(struct acd *);
@ -141,7 +140,7 @@ acdattach(struct atapi *ata, int unit, struct atapi_params *ap, int debug)
printf("wcd: configuration error, ATAPI code not present!\n");
return 0;
}
if ((cdp = acd_init_lun(ata, unit, ap, acdnlun, NULL)) == NULL) {
if ((cdp = acd_init_lun(ata, unit, ap, acdnlun)) == NULL) {
printf("wcd: out of memory\n");
return 0;
}
@ -497,7 +496,7 @@ acd_start(struct acd *cdp)
count = bp->bio_bcount;
}
devstat_start_transaction(cdp->device_stats);
devstat_start_transaction_bio(cdp->device_stats, bp);
atapi_request_callback(cdp->ata, cdp->unit, cmd, 0,
lba>>24, lba>>16, lba>>8, lba, 0,