* Re: Kernel 2.4.10: aironet4500_card.c:62: parse error
@ 2001-09-24 21:30 Andrzej Krzysztofowicz
0 siblings, 0 replies; 2+ messages in thread
From: Andrzej Krzysztofowicz @ 2001-09-24 21:30 UTC (permalink / raw)
To: hafre, kernel list
> 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.
IMO, a better fix is to
#include <linux/init.h>
in the driver.
aironet4500 needs more cleaning, however...
> *** 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, },
>
Andrzej
--
=======================================================================
Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Technical University of Gdansk
^ permalink raw reply [flat|nested] 2+ messages in thread* Kernel 2.4.10: aironet4500_card.c:62: parse error
@ 2001-09-24 16:14 Hans Freitag
0 siblings, 0 replies; 2+ messages in thread
From: Hans Freitag @ 2001-09-24 16:14 UTC (permalink / raw)
To: kernel
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
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!
[-- Attachment #2: aironet.diff --]
[-- Type: text/plain, Size: 888 bytes --]
*** 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, },
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-24 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-24 21:30 Kernel 2.4.10: aironet4500_card.c:62: parse error Andrzej Krzysztofowicz
-- strict thread matches above, loose matches on Subject: below --
2001-09-24 16:14 Hans Freitag
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®