Subject: Re: Undeclared BUFQ_INSERT_HEAD in pmax and amiga kernels
To: NetBSD Mailing list <>
From: Simon Burge <>
List: current-users
Date: 01/24/2000 09:11:44
NetBSD Mailing list wrote:

> The following occurs in the pmax port when building the GENERIC kernel:
> 	cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -G 0  -mno-abicalls -mno-half-pic -I. -I/usr/src/
sys/arch -I/usr/src/sys -nostdinc -I/usr/src/sys/../gnu/sys -DMIPS1 -DMIPS3 -DLKM -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax  -c 
> 	cc1: warnings being treated as errors
> 	/usr/src/sys/arch/pmax/dev/tz.c: In function `tzprobe':
> 	/usr/src/sys/arch/pmax/dev/tz.c:231: warning: implicit declaration of function `BUFQ_INSERT_HEAD'
> 	*** Error code 1
>  [[ ... ]]
> The lack of a declaration anywhere suggests that the amiga port would be 
> exhibiting the same failure with fd.c.

Ahh, the wrath of the uncompiled commit!  BUFQ_INSERT_HEAD is defined
in <sys/queue.h>.  rz.c works because it includes <sys/disk.h> which
includes <sys/queue.h>.  I'll fix this in the next few minutes (when
my cvs update finishes) by adding <sys/queue.h> to includes for both,
although I can only test for pmax.