110-disable_usb_compat.patch 996 B

123456789101112131415161718192021222324252627282930313233
  1. --- a/compat/compat-2.6.28.c
  2. +++ b/compat/compat-2.6.28.c
  3. @@ -166,7 +166,7 @@ EXPORT_SYMBOL(pcmcia_loop_config);
  4. #endif /* CONFIG_PCMCIA */
  5. -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
  6. +#if 0
  7. void usb_unpoison_urb(struct urb *urb)
  8. {
  9. --- a/compat/compat-2.6.29.c
  10. +++ b/compat/compat-2.6.29.c
  11. @@ -51,7 +51,7 @@ void netdev_attach_ops(struct net_device
  12. EXPORT_SYMBOL(netdev_attach_ops);
  13. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
  14. -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
  15. +#if 0
  16. /**
  17. * usb_unpoison_anchored_urbs - let an anchor be used successfully again
  18. * @anchor: anchor the requests are bound to
  19. --- a/include/linux/compat-2.6.28.h
  20. +++ b/include/linux/compat-2.6.28.h
  21. @@ -52,7 +52,7 @@ int pcmcia_loop_config(struct pcmcia_dev
  22. /* USB anchors were added as of 2.6.23 */
  23. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
  24. -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
  25. +#if 0
  26. #if 0
  27. extern void usb_poison_urb(struct urb *urb);
  28. #endif