2002-09-29 20:06:41

by newsgate

[permalink] [raw]
Subject: [PATCH] Orinoco 2.5.39 include fix

2.5.39 with orinoco support fails to include because of tqueue.h isn't
included. This patch fixes that so that the orinoco module compiles.

This patch has been untested because the keyboard on my Toshiba 505-S5004
has not worked since 2.5.31. :(


(An aside -- Some day I'm going to have a kernel patch accepted. Some
day...)



diff -urN linux-2.5.39/drivers/net/wireless/orinoco.c linux-2.5.39.new/drivers/net/wireless/orinoco.c
--- linux-2.5.39/drivers/net/wireless/orinoco.c 2002-09-27 17:49:54.000000000 -0400
+++ linux-2.5.39.new/drivers/net/wireless/orinoco.c 2002-09-29 15:57:30.000000000 -0400
@@ -372,6 +372,7 @@
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <linux/wireless.h>
+#include <linux/tqueue.h>

#include "hermes.h"
#include "hermes_rid.h"
diff -urN linux-2.5.39/drivers/net/wireless/orinoco_cs.c linux-2.5.39.new/drivers/net/wireless/orinoco_cs.c
--- linux-2.5.39/drivers/net/wireless/orinoco_cs.c 2002-09-27 17:50:32.000000000 -0400
+++ linux-2.5.39.new/drivers/net/wireless/orinoco_cs.c 2002-09-29 15:57:17.000000000 -0400
@@ -32,6 +32,7 @@
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <linux/wireless.h>
+#include <linux/tqueue.h>

#include <pcmcia/version.h>
#include <pcmcia/cs_types.h>


--
GnuPG fingerprint AAE4 8C76 58DA 5902 761D 247A 8A55 DA73 0635 7400
James Blackwell -- Director http://www.linuxguru.net


2002-09-30 03:28:17

by David Gibson

[permalink] [raw]
Subject: Re: [PATCH] Orinoco 2.5.39 include fix

On Sun, Sep 29, 2002 at 04:11:59PM -0400, [email protected] wrote:
> 2.5.39 with orinoco support fails to include because of tqueue.h isn't
> included. This patch fixes that so that the orinoco module compiles.
>
> This patch has been untested because the keyboard on my Toshiba 505-S5004
> has not worked since 2.5.31. :(
>
>
> (An aside -- Some day I'm going to have a kernel patch accepted. Some
> day...)

Hmm.. I can't seem to reproduce the problem (but I'm having trouble
getting 2.5.39 to compile at all on my PowerMac). Nonetheless
tqueue.h should be included directly, so I've included a patch with
similar intent into the next driver update, patch coming soon.

--
David Gibson | For every complex problem there is a
[email protected] | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson