Skip to contentSkip to conversation

cdc-subset: make compile with all config options

PATCH In review Oliver Neukum 2 participants 3 messages Jul 30, 2014 – Aug 1, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cdc-subset: make compile with all config options

My earlier patch introduced helper methods errornously subject to conditional compilation. This patch makes them available under all config options.

---
 drivers/net/usb/cdc_subset.c | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)
drivers/net/usb/cdc_subset.c +9 -11
index 3ef411e..6ea98cf 100644
@@ -99,16 +99,6 @@ static void m5632_recover(struct usbnet *dev)
 	usb_unlock_device(udev);
 }
 
-static int dummy_prereset(struct usb_interface *intf)
-{
-	return 0;
-}
-
-static int dummy_postreset(struct usb_interface *intf)
-{
-	return 0;
-}
-
 static const struct driver_info	ali_m5632_info = {
 	.description =	"ALi M5632",
 	.flags       = FLAG_POINTTOPOINT,
@@ -117,7 +107,6 @@ static const struct driver_info	ali_m5632_info = {
 
 #endif
 
-
 #ifdef	CONFIG_USB_AN2720
 #define	HAVE_HARDWARE
 
@@ -351,6 +340,15 @@ static const struct usb_device_id	products [] = {
 MODULE_DEVICE_TABLE(usb, products);
 
 /*-------------------------------------------------------------------------*/
+static int dummy_prereset(struct usb_interface *intf)
+{
+        return 0;
+}
+
+static int dummy_postreset(struct usb_interface *intf)
+{
+        return 0;
+}
 
 static struct usb_driver cdc_subset_driver = {
 	.name =		"cdc_subset",
Signature · 1 line
1.8.4.5
maintainer
#1 lore raw

From: Oliver Neukum <[email protected]>
Date: Wed, 30 Jul 2014 10:54:46 +0200

Quoted 5 lines

My earlier patch introduced helper methods errornously subject to conditional compilation. This patch makes them available under all config options.

Oliver, since I had Linus revert your patch (in order to expedite the 3.16-final release), you'll need to send me your original patch with these fixes here included.

Thanks.

#2 lore raw
Quoted 7 lines · David Miller

From: Oliver Neukum <[email protected]>
Date: Wed, 30 Jul 2014 10:54:46 +0200

Quoted 4 lines

My earlier patch introduced helper methods errornously subject to conditional compilation. This patch makes them available under all config options.

Quoted 5 lines
Quoted 1 line

Oliver, since I had Linus revert your patch (in order to expedite the 3.16-final release), you'll need to send me your original patch with these fixes here included.

On the way.

Sorry
Oliver