usb: core: hcd: add missing header dependencies

Message ID
State Accepted
Commit 35be784cdb9c81e9fa0c7cac3492069cadd6a726
Headers show

Commit Message

Baoyou Xie Sept. 23, 2016, 1:44 p.m.
We get 1 warning when building kernel with W=1:
drivers/usb/core/hcd.c:2390:5: warning: no previous prototype for 'usb_bus_start_enum' [-Wmissing-prototypes]

In fact, these functions are declared in linux/usb/otg.h, so this patch
adds the missing header dependencies.

Signed-off-by: Baoyou Xie <>

 drivers/usb/core/hcd.c | 1 +
 1 file changed, 1 insertion(+)


To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to
More majordomo info at


diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 746c47d..479e223 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -46,6 +46,7 @@ 
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
 #include <linux/usb/phy.h>
+#include <linux/usb/otg.h>
 #include "usb.h"