mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
Readd and update compat-wireless (2.6.34).
This commit is contained in:
28
src/patches/compat-wireless-2.6.34-usbnet_compile.patch
Normal file
28
src/patches/compat-wireless-2.6.34-usbnet_compile.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff -Naur compat-wireless-2.6.34.org/include/linux/usb/usbnet.h compat-wireless-2.6.34/include/linux/usb/usbnet.h
|
||||
--- compat-wireless-2.6.34.org/include/linux/usb/usbnet.h 2010-05-18 03:12:10.000000000 +0200
|
||||
+++ compat-wireless-2.6.34/include/linux/usb/usbnet.h 2010-05-22 22:18:34.000000000 +0200
|
||||
@@ -214,4 +214,24 @@
|
||||
extern void usbnet_get_drvinfo (struct net_device *, struct ethtool_drvinfo *);
|
||||
extern int usbnet_nway_reset(struct net_device *net);
|
||||
|
||||
+/* messaging support includes the interface name, so it must not be
|
||||
+ * used before it has one ... notably, in minidriver bind() calls.
|
||||
+ */
|
||||
+#ifdef DEBUG
|
||||
+#define devdbg(usbnet, fmt, arg...) \
|
||||
+ printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net->name , ## arg)
|
||||
+#else
|
||||
+#define devdbg(usbnet, fmt, arg...) \
|
||||
+ ({ if (0) printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net->name , \
|
||||
+ ## arg); 0; })
|
||||
+#endif
|
||||
+
|
||||
+#define deverr(usbnet, fmt, arg...) \
|
||||
+ printk(KERN_ERR "%s: " fmt "\n" , (usbnet)->net->name , ## arg)
|
||||
+#define devwarn(usbnet, fmt, arg...) \
|
||||
+ printk(KERN_WARNING "%s: " fmt "\n" , (usbnet)->net->name , ## arg)
|
||||
+
|
||||
+#define devinfo(usbnet, fmt, arg...) \
|
||||
+ printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net->name , ## arg); \
|
||||
+
|
||||
#endif /* __LINUX_USB_USBNET_H */
|
||||
Reference in New Issue
Block a user