Search Linux Wireless

[PATCH 2/2] [compat-2.6] Move usb_unpoison_anchored_urbs to compat-2.6.29.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The declaration of usb_unpoison_anchored_urbs was introduced in kernel 2.6.29.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 compat/compat-2.6.28.h |    1 -
 compat/compat-2.6.29.h |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/compat/compat-2.6.28.h b/compat/compat-2.6.28.h
index 9bc1231..40b5320 100644
--- a/compat/compat-2.6.28.h
+++ b/compat/compat-2.6.28.h
@@ -37,7 +37,6 @@ extern void usb_unpoison_urb(struct urb *urb);
 #if 0
 extern void usb_poison_anchored_urbs(struct usb_anchor *anchor);
 #endif
-extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
 
 extern struct urb *usb_get_from_anchor(struct usb_anchor *anchor);
 extern void usb_scuttle_anchored_urbs(struct usb_anchor *anchor);
diff --git a/compat/compat-2.6.29.h b/compat/compat-2.6.29.h
index f4086e9..8ea43cb 100644
--- a/compat/compat-2.6.29.h
+++ b/compat/compat-2.6.29.h
@@ -8,6 +8,7 @@
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
 
 #include <linux/skbuff.h>
+#include <linux/usb.h>
 
 /**
  *	skb_queue_is_first - check if skb is the first entry in the queue
@@ -40,6 +41,8 @@ static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list,
 	return skb->prev;
 }
 
+extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)) */
 
 #endif /*  LINUX_26_29_COMPAT_H */
-- 
1.6.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux