Kernel 2.4.10: aironet4500_card.c:62: parse error
Quoted 10 lines
Hi,
When I want to compile Kernel 2.4.10 the following error occours:
aironet4500_card.c:62: parse error before
__devinitdata' aironet4500_card.c:62: warning: type defaults toint' in declaration\
of `__devinitdata'With the following patch it's compiling, but I could not test its functionality.
IMO, a better fix is to
#include <linux/init.h>
in the driver.
aironet4500 needs more cleaning, however...
Quoted 11 lines
***
drivers/net/aironet4500_card.c.origMon Sep 24 18:04:04 2001
---drivers/net/aironet4500_card.cMon Sep 24 18:06:16 2001
***************
*** 59,65 ****#include <linux/pci.h>! static struct pci_device_id aironet4500_card_pci_tbl[] __devinitdata = { { PCI_VENDOR_ID_AIRONET, PCI_DEVICE_AIRONET_4800_1, PCI_ANY_ID, PCI_ANY_ID, }, { PCI_VENDOR_ID_AIRONET, PCI_DEVICE_AIRONET_4800, PCI_ANY_ID, PCI_ANY_ID, }, { PCI_VENDOR_ID_AIRONET, PCI_DEVICE_AIRONET_4500, PCI_ANY_ID, PCI_ANY_ID, },
Quoted 9 lines
--- 59,65 ----
#include <linux/pci.h>! static struct pci_device_id aironet4500_card_pci_tbl[] = { { PCI_VENDOR_ID_AIRONET, PCI_DEVICE_AIRONET_4800_1, PCI_ANY_ID, PCI_ANY_ID, }, { PCI_VENDOR_ID_AIRONET, PCI_DEVICE_AIRONET_4800, PCI_ANY_ID, PCI_ANY_ID, }, { PCI_VENDOR_ID_AIRONET, PCI_DEVICE_AIRONET_4500, PCI_ANY_ID, PCI_ANY_ID, },
Andrzej
Signature · 4 lines
======================================================================= Andrzej M. Krzysztofowicz [email protected] phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Technical University of Gdansk