Kernel 2.4.10: aironet4500_card.c:62: parse error

Hans Freitag (hafre@macro.lan-ks.de)
Mon, 24 Sep 2001 18:14:45 +0200


--huq684BweRXVnRxX
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline

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 to `int' in declaration\
of `__devinitdata'

With the following patch it's compiling, but I could not
test its functionality.

bye

-- 
May the Source be with you!

--huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="aironet.diff"

*** drivers/net/aironet4500_card.c.orig Mon Sep 24 18:04:04 2001 --- drivers/net/aironet4500_card.c Mon 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, }, --- 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, },

--huq684BweRXVnRxX-- - 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/