Re: 2.5.40 compile error (missing imm.o)

bonganilinux@mweb.co.za
Wed, 2 Oct 2002 07:39:18 GMT


>
> Hi,
>
> 2.5.40 gives me a compile error doesnt exists before.
>
> gcc -Wp,-MD,./.imm.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=athlon -I/usr/src/linux/arch/i386/mach-generic -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=imm -c -o imm.o imm.c
> drivers/scsi/imm.c: In function `imm_interrupt':
> drivers/scsi/imm.c:901: warning: implicit declaration of function
> `queue_task'
> drivers/scsi/imm.c:901: `tq_timer' undeclared (first use in this function)
> drivers/scsi/imm.c:901: (Each undeclared identifier is reported only once
> drivers/scsi/imm.c:901: for each function it appears in.)
> drivers/scsi/imm.c: In function `imm_queuecommand':
> drivers/scsi/imm.c:1108: `tq_immediate' undeclared (first use in this
> function)
> drivers/scsi/imm.c:1109: warning: implicit declaration of function `mark_bh'
> drivers/scsi/imm.c:1109: `IMMEDIATE_BH' undeclared (first use in this
> function)

<snip>

Try this patch I think it should fix it (not tested though)

diff -uNr linux-2.5/drivers/scsi/imm.c.old linux-2.5/drivers/scsi/imm.c
--- linux-2.5/drivers/scsi/imm.c.old 2002-10-02 09:30:41.000000000 +0200
+++ linux-2.5/drivers/scsi/imm.c 2002-10-02 09:31:53.000000000 +0200
@@ -898,7 +898,7 @@
if (imm_engine(tmp, cmd)) {
tmp->imm_tq.data = (void *) tmp;
tmp->imm_tq.sync = 0;
- queue_task(&tmp->imm_tq, &tq_timer);
+ schedule_task(&tmp->imm_tq);
return;
}
/* Command must of completed hence it is safe to let go... */
@@ -1105,8 +1105,7 @@

imm_hosts[host_no].imm_tq.data = imm_hosts + host_no;
imm_hosts[host_no].imm_tq.sync = 0;
- queue_task(&imm_hosts[host_no].imm_tq, &tq_immediate);
- mark_bh(IMMEDIATE_BH);
+ schedule_task(&imm_hosts[host_no].imm_tq);

return 0;
}

Cheers

>
> Regards
>
> -Ubaida-

---------------------------------------------
This message was sent using M-Web Airmail.
JUST LIKE THAT
Are you ready for 10-digit dialling?
To find out how this will affect your Internet connection go to www.mweb.co.za/ten
http://airmail.mweb.co.za/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/