From patchwork Fri Sep 23 13:44:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76870 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp577594qgf; Fri, 23 Sep 2016 06:44:33 -0700 (PDT) X-Received: by 10.66.97.72 with SMTP id dy8mr12545015pab.114.1474638273259; Fri, 23 Sep 2016 06:44:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si8023091paf.172.2016.09.23.06.44.33; Fri, 23 Sep 2016 06:44:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034437AbcIWNob (ORCPT + 4 others); Fri, 23 Sep 2016 09:44:31 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36402 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030247AbcIWNoa (ORCPT ); Fri, 23 Sep 2016 09:44:30 -0400 Received: by mail-pa0-f43.google.com with SMTP id qn7so23082591pac.3 for ; Fri, 23 Sep 2016 06:44:30 -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=CS+Vy84h7CvAzdMCehYhJxvU2KRBoGkaP2dPTcXMHtk=; b=eoqCgs4Y2UJUnmD6psxbRnSMjQTg0ewKNL7VS3CkZ0PREIYf2dp79Qnv3dRG0+S4tx xlb0AOCFHrpHI38Wf/NkPhdQweA8v4Pydq5asPry2C8+JWKY9k53VJ9JDeKFEfAZkko3 EjZCCIFXTa3rbot4lqCUVFnMVgNYCHTXNtnn0= 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=CS+Vy84h7CvAzdMCehYhJxvU2KRBoGkaP2dPTcXMHtk=; b=U0sd0Q6AKVZjhLZ2TCi5IIrhSuKgjArcvSaTzCRNYQ+xUQMrzw7Rm+V2D3o1iBIcoT xY/Yz3M2Y2E/mccLOWyvJAc/s/dYcv6g1VcFoH7ohvWHLR7Dv5GQtqJyMsd0ZcsazM5m uZ2b1kCvI7ZjxBU3AeQMtNrRtEmn56/nWfPBf6CLBw/uBIgPqufbK4X+KqvJw7hxeoSF 3lJp63AHD9IzMHulQnaNV+OkW5/ecr/Y4EoTjzNI+RBhHDWHfQxViNsiUoO43iW3QVUM uugRkRwFn8mUREkoevqFpA3+YtvdnDEHdHUzGRXYxufp9EE3nKUIg7IncuPMA1J97bGt wqcQ== X-Gm-Message-State: AE9vXwO1U0h10P2xsu8YBhOs6x7eJYdDhZeET5vf+lY9TRlVd9kU4dFflNrQEpKRKbdWeE0f X-Received: by 10.67.23.41 with SMTP id hx9mr12702120pad.147.1474638269873; Fri, 23 Sep 2016 06:44:29 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id wr8sm11844331pab.44.2016.09.23.06.44.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 06:44:29 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, mathias.nyman@linux.intel.com, hkallweit1@gmail.com, geert@linux-m68k.org, geliangtang@163.com, chris.bainbridge@gmail.com, julia.lawall@lip6.fr, javier@osg.samsung.com, sergei.shtylyov@cogentembedded.com, stern@rowland.harvard.edu Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] usb: core: hcd: add missing header dependencies Date: Fri, 23 Sep 2016 21:44:13 +0800 Message-Id: <1474638253-27196-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 #include #include +#include #include "usb.h"