Subject: Re: error undefined in isp_sbus.c
To: god <heas@shrubbery.net>
From: Matthew Jacob <mjacob@feral.com>
List: current-users
Date: 05/17/2002 17:46:29
POinty hat to me. My mistake.
On Sat, 18 May 2002, god wrote:
> sources from today;
>
> cc -mtune=supersparc -mcpu=v8 -mno-fpu -ffreestanding -g -O2 -Werror -Wall -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized -I. -I../../../../arch -I../../../.. -nostdinc -DNMBCLUSTERS="0x200" -DRASTERCONSOLE -DMAXUSERS=128 -D_KERNEL -D_KERNEL_OPT -c /sys/arch/sparc/compile/guelahddb/../../../../dev/sbus/isp_sbus.c
> /sys/arch/sparc/compile/guelahddb/../../../../dev/sbus/isp_sbus.c: In function `isp_sbus_dmasetup':
> /sys/arch/sparc/compile/guelahddb/../../../../dev/sbus/isp_sbus.c:543: `error' undeclared (first use in this function)
> /sys/arch/sparc/compile/guelahddb/../../../../dev/sbus/isp_sbus.c:543: (Each undeclared identifier is reported only once
> /sys/arch/sparc/compile/guelahddb/../../../../dev/sbus/isp_sbus.c:543: for each function it appears in.)
>
> is this correct?
>
> Index: isp_sbus.c
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/dev/sbus/isp_sbus.c,v
> retrieving revision 1.52
> diff -u -c -r1.52 isp_sbus.c
> *** isp_sbus.c 2002/05/17 19:06:24 1.52
> --- isp_sbus.c 2002/05/18 00:43:01
> ***************
> *** 540,546 ****
> NULL, (cansleep ? BUS_DMA_WAITOK : BUS_DMA_NOWAIT) |
> BUS_DMA_STREAMING) != 0) {
> XS_SETERR(xs, HBA_BOTCH);
> ! if (error == EAGAIN || error == ENOMEM)
> return (CMD_EAGAIN);
> else
> return (CMD_COMPLETE);
> --- 540,546 ----
> NULL, (cansleep ? BUS_DMA_WAITOK : BUS_DMA_NOWAIT) |
> BUS_DMA_STREAMING) != 0) {
> XS_SETERR(xs, HBA_BOTCH);
> ! if (xs->error == EAGAIN || xs->error == ENOMEM)
> return (CMD_EAGAIN);
> else
> return (CMD_COMPLETE);
>