From patchwork Thu Sep 1 11:37:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75194 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp246168qga; Thu, 1 Sep 2016 04:38:20 -0700 (PDT) X-Received: by 10.66.220.194 with SMTP id py2mr25666878pac.77.1472729900743; Thu, 01 Sep 2016 04:38:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sq1si5303139pab.29.2016.09.01.04.38.20; Thu, 01 Sep 2016 04:38:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933287AbcIALiR (ORCPT + 27 others); 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 Received: by mail-pf0-f181.google.com with SMTP id p64so30659481pfb.1 for ; Thu, 01 Sep 2016 04:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Trs1SUHc67TKBIsnboxl108J3hFSx9eMTzp96BDa7U8=; b=EFIMz/1isLEXGmULF2jf9z1vBjo0LPDway2rnLXgYG4Z1Ls2BPHF7x/ca4oWybCFKZ zmSR+HRqVGIznFBhZvzIQ3eI4tvPhJNmyXLRFMif649VcgEL7AlnS4Sz/+ACWJCyABZy vcuj34tWPxLElT4PY7Y+/ah0Rv3wdQKHIKWFs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Trs1SUHc67TKBIsnboxl108J3hFSx9eMTzp96BDa7U8=; b=E5TBUNRyzSpZgfrD0Jq5n9VROH41qbnHKkrpUBKBCOafP79asyC+WCtp6/Y/31KuMo etjrxr1+QhCu5FbtqBrwhQ4TxTYCVH5uBJ51zPnkDuwYVJw8gAGDBV+L5HxH6MoOE0m1 9qJfYN9rt3eUoioA3UpZQBIv8B7lZ9z7uS1I687JDGlwPWBHrE2ftSmwNftzszGD90Uo Cq2Ty6C/lZIvx5MZGFUYTVSx5kqKp8w77JpWratvhDAA/HpVtjKTpdOuSAJmWNH7xeqL 8ql5mmeCqZyPjyvKtEQ90DVaNPdViRQ+4Omc2kb7zxLhIlf2w04RbDnn0JrruJlPXZAV KrDw== X-Gm-Message-State: AE9vXwMqDO2YPdxTtZs9dfFpoKv0UClrjz21m8CqBcX6iJPp+B0W6Ug1Uk1a4FyTvozqnDJJ X-Received: by 10.98.88.131 with SMTP id m125mr25661351pfb.63.1472729894898; Thu, 01 Sep 2016 04:38:14 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.82]) by smtp.gmail.com with ESMTPSA id i62sm7000488pfg.62.2016.09.01.04.38.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Sep 2016 04:38:14 -0700 (PDT) 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 Precedence: bulk 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(+) -- 2.7.4 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