]> git.openfabrics.org - compat-rdma/compat.git/commitdiff
compat: fix build with CONFIG_USB=m
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 20 Jan 2010 19:33:16 +0000 (20:33 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 20 Jan 2010 19:40:16 +0000 (11:40 -0800)
The usb compat code was not build if usb was build as module in kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
compat/compat-2.6.28.c
compat/compat-2.6.29.c
include/linux/compat-2.6.28.h
include/linux/compat-2.6.29.h

index a141859f70b381a43f30527c0c6f07ae40d14c32..115bd23a719d53db4d5f3cd8556f45d3e7c90f54 100644 (file)
@@ -17,7 +17,7 @@
 /* 2.6.28 compat code goes here */
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
-#if defined(CONFIG_USB)
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 /*
  * Compat-wireless notes for USB backport stuff:
  *
@@ -166,7 +166,7 @@ EXPORT_SYMBOL(pcmcia_loop_config);
 
 #endif /* CONFIG_PCMCIA */
 
-#if defined(CONFIG_USB)
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 
 void usb_unpoison_urb(struct urb *urb)
 {
index 48e72a352c45ff250eccbb821cecd3f48ae1160f..c8e0183fa08bc6f59ce1a63a9924db719722f909 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/etherdevice.h>
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
-#if defined(CONFIG_USB)
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 /**
  * usb_unpoison_anchored_urbs - let an anchor be used successfully again
  * @anchor: anchor the requests are bound to
index 13a036749129800512edb3c549f421ca4961db27..2cab3201dba09085504735c0988539510c2fa442 100644 (file)
@@ -52,7 +52,7 @@ int pcmcia_loop_config(struct pcmcia_device *p_dev,
 /* USB anchors were added as of 2.6.23 */
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
 
-#if defined(CONFIG_USB)
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 #if 0
 extern void usb_poison_urb(struct urb *urb);
 #endif
index 27f1325253e420e874f7f027e647801d87c113ba..c3572a2026a356b4f756ac842b6a791fa0179751 100644 (file)
@@ -47,7 +47,7 @@ static inline struct net_device_stats *dev_get_stats(struct net_device *dev)
 }
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
-#if defined(CONFIG_USB)
+#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
 extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
 #endif /* CONFIG_USB */
 #endif