alupu | 5 Jun 2007 20:29
Picon

at76c503a crashes on 2.6.21.3

Hello,

i686-pc-linux-gnu 2.6.21.3,
gcc 4.1.2, glibc 2.5, udev 111
at76c503a-0.13.tar.gz
 (md5sum: d34f6c8c4a790eaa5bd2cfd23f239340)
Linksys WUSB11 v2.6

In order to compile the driver at all,
I had to use three workarounds:

1. In /linux-2.6.21.3/include/linux/ added symlink
 config.h -> /linux-2.6.21.3/include/config/x86/find/smp/config.h

2. In /linux-2.6.21.3/include/linux/ added symlink
 devfs_fs_kernel.h -> /usr/include/linux/devfs_fs_kernel.h

3. To avoid the error:
    /usr/src/at76c503a/at76c503.c:7037:38: error:
    macro "INIT_WORK" passed 3 arguments,
    but takes just 2,
   I _alternately_ did:
  3a. In 'at76c503.c' changed
       "INIT_WORK (&dev->kevent, kevent, dev);"
       to "INIT_WORK (&dev->kevent, kevent);"
  3b. Left 'at76c503.c' unchanged and
      in /linux-2.6.21.3/include/linux/ replaced 
      'workqueue.h' with the symlink
      workqueue.h -> /usr/include/linux/workqueue.h

(Continue reading)

Pavel Roskin | 5 Jun 2007 22:40
Picon

Re: at76c503a crashes on 2.6.21.3

Hello!

On Tue, 2007-06-05 at 13:29 -0500, alupu <at> verizon.net wrote:

> i686-pc-linux-gnu 2.6.21.3,
> gcc 4.1.2, glibc 2.5, udev 111
> at76c503a-0.13.tar.gz

Unfortunately, it's hard to make standalone packages because the kernel
API is changing in every kernel version.  The work is underway to
include the driver into the kernel, which would provide a long term
solution.  Version 0.13 is obsolete, and I don't think any further
standalone releases will be made.

> In order to compile the driver at all,
> I had to use three workarounds:
[skip]
> 3. To avoid the error:
>     /usr/src/at76c503a/at76c503.c:7037:38: error:
>     macro "INIT_WORK" passed 3 arguments,
>     but takes just 2,
>    I _alternately_ did:
>   3a. In 'at76c503.c' changed
>        "INIT_WORK (&dev->kevent, kevent, dev);"
>        to "INIT_WORK (&dev->kevent, kevent);"
>   3b. Left 'at76c503.c' unchanged and
>       in /linux-2.6.21.3/include/linux/ replaced 
>       'workqueue.h' with the symlink
>       workqueue.h -> /usr/include/linux/workqueue.h

(Continue reading)


Gmane