Skip to contentSkip to conversation

linux-next: build failure after merge of the usb tree

PATCH Stephen Rothwell 3 participants 3 messages May 29, 2014

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

Hi Greg,

After merging the usb tree, today's linux-next build (sparc64 defconfig) failed like this:

drivers/usb/core/hub.c: In function 'port_event':
drivers/usb/core/hub.c:4853:2: error: implicit declaration of function 'hub_handle_remote_wakeup' [-Werror=implicit-function-declaration]

Caused by commits af376a461cf0 ("usb: refactor port handling in hub_events()") and 7e73be227b15 ("usb: hub_handle_remote_wakeup() depends on CONFIG_PM_RUNTIME=y") This build has CONFIG_PM not set ...

I have added this fix patch for today (there is probably a better way):

From: Stephen Rothwell <[email protected]>
Date: Thu, 29 May 2014 18:55:06 +1000
Subject: [PATCH] usb: hub_handle_remote_wakeup() only exists for CONFIG_PM=y

---
 drivers/usb/core/hub.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/usb/core/hub.c +6 -0
index 5672752bfd2c..879b66e13370 100644
@@ -3977,6 +3977,12 @@ EXPORT_SYMBOL_GPL(usb_disable_ltm);
 void usb_enable_ltm(struct usb_device *udev) { }
 EXPORT_SYMBOL_GPL(usb_enable_ltm);
 
+static int hub_handle_remote_wakeup(struct usb_hub *hub, unsigned int port,
+		u16 portstatus, u16 portchange)
+{
+	return 0;
+}
+
 #endif	/* CONFIG_PM */
 
 
Signature · 5 lines
2.0.0

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 30 lines · Stephen Rothwell

Hi Greg,

After merging the usb tree, today's linux-next build (sparc64 defconfig) failed like this:

drivers/usb/core/hub.c: In function 'port_event':
drivers/usb/core/hub.c:4853:2: error: implicit declaration of function 'hub_handle_remote_wakeup' [-Werror=implicit-function-declaration]

Caused by commits af376a461cf0 ("usb: refactor port handling in hub_events()") and 7e73be227b15 ("usb: hub_handle_remote_wakeup() depends on CONFIG_PM_RUNTIME=y") This build has CONFIG_PM not set ...

I have added this fix patch for today (there is probably a better way):

From: Stephen Rothwell <[email protected]>
Date: Thu, 29 May 2014 18:55:06 +1000
Subject: [PATCH] usb: hub_handle_remote_wakeup() only exists for CONFIG_PM=y

---
 drivers/usb/core/hub.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/usb/core/hub.c +0 -0
index 5672752bfd2c..879b66e13370 100644
@@ -3977,6 +3977,12 @@ EXPORT_SYMBOL_GPL(usb_disable_ltm);
 void usb_enable_ltm(struct usb_device *udev) { }
 EXPORT_SYMBOL_GPL(usb_enable_ltm);

drivers/usb/core/hub.c EXPORT_SYMBOL_GPL(usb_disable_ltm); · line 3988

Quoted 10 lines
drivers/usb/core/hub.c +6 -0
 
+static int hub_handle_remote_wakeup(struct usb_hub *hub, unsigned int port,
+		u16 portstatus, u16 portchange)
+{
+	return 0;
+}
+
 #endif	/* CONFIG_PM */
 
 

Dan, any objection to me taking this patch?

thanks,

greg k-h

Acked-by
#2 lore raw
Quoted 44 lines · Greg KH
Quoted 30 lines · Stephen Rothwell

Hi Greg,

After merging the usb tree, today's linux-next build (sparc64 defconfig) failed like this:

drivers/usb/core/hub.c: In function 'port_event':
drivers/usb/core/hub.c:4853:2: error: implicit declaration of function 'hub_handle_remote_wakeup' [-Werror=implicit-function-declaration]

Caused by commits af376a461cf0 ("usb: refactor port handling in hub_events()") and 7e73be227b15 ("usb: hub_handle_remote_wakeup() depends on CONFIG_PM_RUNTIME=y") This build has CONFIG_PM not set ...

I have added this fix patch for today (there is probably a better way):

From: Stephen Rothwell <[email protected]>
Date: Thu, 29 May 2014 18:55:06 +1000
Subject: [PATCH] usb: hub_handle_remote_wakeup() only exists for CONFIG_PM=y

---
 drivers/usb/core/hub.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/usb/core/hub.c +0 -0
index 5672752bfd2c..879b66e13370 100644
@@ -3977,6 +3977,12 @@ EXPORT_SYMBOL_GPL(usb_disable_ltm);
 void usb_enable_ltm(struct usb_device *udev) { }
 EXPORT_SYMBOL_GPL(usb_enable_ltm);

drivers/usb/core/hub.c EXPORT_SYMBOL_GPL(usb_disable_ltm); · line 3988

Quoted 10 lines
drivers/usb/core/hub.c +6 -0
 
+static int hub_handle_remote_wakeup(struct usb_hub *hub, unsigned int port,
+             u16 portstatus, u16 portchange)
+{
+     return 0;
+}
+
 #endif       /* CONFIG_PM */
 
 

Dan, any objection to me taking this patch?

Quoted 2 lines

thanks,

None. That's identical to the one I have in my queue. I was only holding off to send it along with the pending updates to patch 18 and 19 per Alan's concerns.

Side note, as you mentioned before, git trees are horrible for review purposes, but they are good for sanity checking. In retrospect I should have kept this series in a kbuild-robot visible branch.

--
Dan