Subject: Re: current not building: src/sys/dev/ata/wd.c is odd
To: None <current-users@netbsd.org>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: current-users
Date: 04/15/2003 13:55:59
On Tue, 15 Apr 2003, Xavier HUMBERT wrote:

> htodd@twofifty.com (Hisashi T Fujinaka) :
> 
> > in src/sys/dev/ata/wd.c, on line 779, there's a reference to "b" that
> > isn't previously defined.
> 
> Apprently fixed now :
> 
> [xavier@arnor xavier]$ head -782 /usr/src/sys/dev/ata/wd.c | tail -5
>                  * do this for reads because the drive should do it for writes,
>                  * itself, according to Manuel.
>                  */
>                 if ((bp->b_flags & B_READ) &&
>                     ((wd->drvp->ata_vers >= 4 && wd->sc_wdc_bio.r_error & 64) ||
> [xavier@arnor xavier]$ ident /usr/src/sys/dev/ata/wd.c
> /usr/src/sys/dev/ata/wd.c:
>      $NetBSD: wd.c,v 1.244 2003/04/15 19:14:58 nathanw Exp $
>      $NetBSD: wd.c,v 1.244 2003/04/15 19:14:58 nathanw Exp $

But not completely:

/usr/src/tools/obj/tools.NetBSD-1.6R-i386/bin/i386--netbsdelf-gcc -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Di386 -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/dev/ata/wd.c
/usr/src/sys/dev/ata/wd.c: In function `wdioctl':
/usr/src/sys/dev/ata/wd.c:1190: storage size of `dbsi' isn't known
/usr/src/sys/dev/ata/wd.c:1195: dereferencing pointer to incomplete type
/usr/src/sys/dev/ata/wd.c:1227: dereferencing pointer to incomplete type
cc1: warnings being treated as errors
/usr/src/sys/dev/ata/wd.c:1190: warning: unused variable `dbsi'
*** Error code 1


-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE (6/86) + BSChem (3/95) + BAEnglish (8/95) + $2.50 = mocha latte