From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932232AbcIALiR (ORCPT ); Thu, 1 Sep 2016 07:38:17 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34305 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753554AbcIALiP (ORCPT ); Thu, 1 Sep 2016 07:38:15 -0400 From: Baoyou Xie To: gregkh@linuxfoundation.org, arnd@arndb.de, robh@kernel.org, p.zabel@pengutronix.de, peter.chen@freescale.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] USB: core: add missing header dependencies Date: Thu, 1 Sep 2016 19:37:41 +0800 Message-Id: <1472729861-19360-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/usb/core/of.c:31:21: warning: no previous prototype for 'usb_of_get_child_node' [-Wmissing-prototypes] In fact, this function is declared in linux/usb/of.h, so this patch add missing header dependencies Signed-off-by: Baoyou Xie --- drivers/usb/core/of.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/core/of.c b/drivers/usb/core/of.c index 2289700..3de4f88 100644 --- a/drivers/usb/core/of.c +++ b/drivers/usb/core/of.c @@ -18,6 +18,7 @@ */ #include +#include /** * usb_of_get_child_node - Find the device node match port number -- 2.7.4