mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl>
To: hafre@macro.lan-ks.de, linux-kernel@vger.kernel.org (kernel list)
Subject: Re: Kernel 2.4.10: aironet4500_card.c:62: parse error
Date: Mon, 24 Sep 2001 23:30:28 +0200 (CEST)	[thread overview]
Message-ID: <200109242130.XAA06121@green.mif.pg.gda.pl> (raw)

> 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

             reply	other threads:[~2001-09-24 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-24 21:30 Andrzej Krzysztofowicz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-24 16:14 Hans Freitag

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200109242130.XAA06121@green.mif.pg.gda.pl \
    --to=ankry@green.mif.pg.gda.pl \
    --cc=hafre@macro.lan-ks.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®