[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1474638253-27196-1-git-send-email-baoyou.xie@linaro.org>
Date: Fri, 23 Sep 2016 21:44:13 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: gregkh@...uxfoundation.org, mathias.nyman@...ux.intel.com,
hkallweit1@...il.com, geert@...ux-m68k.org, geliangtang@....com,
chris.bainbridge@...il.com, julia.lawall@...6.fr,
javier@....samsung.com, sergei.shtylyov@...entembedded.com,
stern@...land.harvard.edu
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
arnd@...db.de, baoyou.xie@...aro.org, xie.baoyou@....com.cn
Subject: [PATCH] usb: core: hcd: add missing header dependencies
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 <baoyou.xie@...aro.org>
---
drivers/usb/core/hcd.c | 1 +
1 file changed, 1 insertion(+)
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"
--
2.7.4
Powered by blists - more mailing lists