Messages in this thread | | | Date | Thu, 25 Mar 1999 18:37:06 -0600 (CST) | From | Cristian Othon Martinez Vera <> | Subject | Re: Problem to compile 2.2.4 |
| |
> Hell, > > I have a problem to compile 2.2.4 : > > Error: > > make -C scsi modules > make[2]: Entering directory `/home/chmou/red/BUILD/linux/drivers/scsi' > gcc -D__KERNEL__ -I/home/chmou/red/BUILD/linux/include -Wall > -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe > -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 > -malign-functions=2 > -DCPU=586 -DMODULE -DMODVERSIONS -include > /home/chmou/red/BUILD/linux/include/linux/modversions.h -c -o pci2000.o > pci2000.c > pci2000.c:37: linux/head.h: No such file or directory > In file included from pci2000.c:40: > /home/chmou/red/BUILD/linux/include/linux/bios32.h:11: warning: #warning This > driver uses the old PCI interface, please fix it (see Documentation/pci.txt) > /home/chmou/red/BUILD/linux/include/linux/bios32.h:32: warning: > `pcibios_read_config_byte' redefined > /home/chmou/red/BUILD/linux/include/linux/modules/pcisyms.ver:4: warning: this > is the location of the previous definition > pci2000.c: In function `Pci2000_Detect': > pci2000.c:609: warning: passing arg 3 of `__pcibios_read_irq' from incompatible > pointer type > pci2000.c:609: warning: passing arg 4 of `__pcibios_read_config_byte' from > incompatible pointer type > pci2000.c: At top level: > pci2000.c:716: `PCI2220I' undeclared here (not in a function) > make[2]: *** [pci2000.o] Error 1 > make[1]: *** [_modsubdir_scsi] Error 2 > make: *** [_mod_drivers] Error 2
The error is present in pci2000.c and pci2220i.c at this line:
pcibios_read_config_byte (pci_bus, pci_device_fn, PCI_INTERRUPT_LINE, &pshost->irq);
The expected argument for &pshost->irq at the low level functions __pcibios_read_irq and __pcibios_read_config_byte is unsigned char *, and the provided is unsigned int * (those functions are defined in the compatibility stub linux/include/linux/bios32.h)
I guess it should be fixed with a cast, but I don't know if it would break something. (I don't have any PCI-2000 or PCI-2220I SCSI device to test)
> The linux/head.h file is under the sparc(64) tree, i can't find it for > a i386 architecture.
I also don't know if it has any use. The error is the same after commenting #include <head.h>
Cristian
-- (o- Cristian Othon Martinez Vera <cfuga@itam.mx> Pulchrum est paucorum //\ http://eniac.rhon.itam.mx/~cfuga/ hominum. v_/_
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |