2.5.40 compile error (missing imm.o)
Quoted 14 lines
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
(quoted diff) +0
-4-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)
Quoted 8 lines
drivers/scsi/imm.c:901: (Each undeclared identifier is reported only oncedrivers/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 functionmark_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)
drivers/scsi/imm.c renamed from drivers/scsi/imm.c.old +2 -3
@@ -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
Quoted 4 lines
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/
Quoted 2 lines
Try this patch I think it should fix it (not tested though)
your patch makes the compilation start again, and no problem till the end at make modules_install
make modules_install produce this error:
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.5.40; fi
depmod: *** Unresolved symbols in /lib/modules/2.5.40/kernel/fs/xfs/xfs.o depmod: run_task_queue depmod: TQ_ACTIVE depmod: queue_task depmod: *** Unresolved symbols in /lib/modules/2.5.40/kernel/net/ipv4/netfilter/ipt_owner.o depmod: next_thread depmod: find_task_by_pid depmod: *** Unresolved symbols in /lib/modules/2.5.40/kernel/net/ipv6/netfilter/ip6t_owner.o depmod: next_thread depmod: find_task_by_pid
Regards
-Ubaida-