lkml.org 
[lkml]   [2003]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux 2.4.24-pre2 - build problems
Marcelo Tosatti wrote:
>
> Hi,
>
> Here goes 2.4.24-pre2.

gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre/include -Wall
-Wstrict-pro
totypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
-DMODULE -DM
ODVERSIONS -include
/data2/usr/local/src/linux-2.4-pre/include/linux/modversions
.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=cciss -c -o
cciss.o cciss.
c
cciss.c: In function `cciss_pci_init':
cciss.c:2681: parse error before `prefetch'
cciss.c:2682: invalid lvalue in assignment
cciss.c:2683: invalid operands to binary |
cciss.c:2683: invalid lvalue in assignment
cciss.c:2684: warning: assignment makes integer from pointer without a
cast
make[2]: *** [cciss.o] Error 1
make[2]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre/drivers/block'

See attached patch.



gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre/include -Wall
-Wstrict-pro
totypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
-DMODULE -DM
ODVERSIONS -include
/data2/usr/local/src/linux-2.4-pre/include/linux/modversions
.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=qlogicfas -DPCMCIA
-D__NO_V
ERSION__ -c -o qlogicfas.o ../qlogicfas.c
../qlogicfas.c: In function `qlogicfas_detect':
../qlogicfas.c:650: warning: passing arg 1 of
`scsi_unregister_Rae128733' from i
ncompatible pointer type
ld -m elf_i386 -r -o qlogic_cs.o qlogic_stub.o qlogicfas.o
qlogicfas.o: In function `init_module':
qlogicfas.o(.text+0xe40): multiple definition of `init_module'
qlogic_stub.o(.text+0x770): first defined here
ld: Warning: size of symbol `init_module' changed from 77 to 58 in
qlogicfas.o
qlogicfas.o: In function `cleanup_module':
qlogicfas.o(.text+0xe80): multiple definition of `cleanup_module'
qlogic_stub.o(.text+0x7c0): first defined here
ld: Warning: size of symbol `cleanup_module' changed from 40 to 16 in
qlogicfas.
o
make[3]: *** [qlogic_cs.o] Error 1
make[3]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre/drivers/scsi/pcmc
ia'
make[2]: *** [_modsubdir_pcmcia] Error 2
make[2]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre/drivers/scsi'

Same old problem, did not see a solution yet.
Deselecting CONFIG_SCSI_PCMCIA...

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>--- linux-2.4-pre/drivers/block/cciss.c.orig Tue Dec 23 16:12:40 2003
+++ linux-2.4-pre/drivers/block/cciss.c Tue Dec 23 16:12:53 2003
@@ -2677,11 +2677,13 @@
}

#ifdef CONFIG_X86
+{
/* Need to enable prefetch in the SCSI core for 6400 in x86 */
__u32 prefetch;
prefetch = readl(&(c->cfgtable->SCSI_Prefetch));
prefetch |= 0x100;
writel(prefetch, &(c->cfgtable->SCSI_Prefetch));
+}
#endif

#ifdef CCISS_DEBUG
\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.043 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site