From patchwork Mon May 16 12:51:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 67888 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1519302qge; Mon, 16 May 2016 05:51:25 -0700 (PDT) X-Received: by 10.28.85.3 with SMTP id j3mr18801487wmb.0.1463403085495; Mon, 16 May 2016 05:51:25 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id s2si9498271wms.0.2016.05.16.05.51.25; Mon, 16 May 2016 05:51:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1C840A7733; Mon, 16 May 2016 14:51:19 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FdhVZkNLX2do; Mon, 16 May 2016 14:51:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C63AA7635; Mon, 16 May 2016 14:51:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DFBD9A74D6 for ; Mon, 16 May 2016 14:51:05 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T6o0NSxs6mjy for ; Mon, 16 May 2016 14:51:05 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by theia.denx.de (Postfix) with ESMTPS id 295384B94B for ; Mon, 16 May 2016 14:51:02 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id u4GCoiAp001768; Mon, 16 May 2016 21:50:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u4GCoiAp001768 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1463403055; bh=Z9F1RR6cEzfGvU7taBGsQcyl8ZVaXe7Xjybm29yvtMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bAlwjPLOJDTWDqCWiyCZoXtvNWs+f9Pn+xzFfmuIAEpMWEDmcGZxCIU59qz0ENqz5 shk47WLsjb3b/Gq8omPNc73NdSnXX94F+HFIK86Mp7NVuGhrzf1Xz5Jl+XsATSvO8U BApJfdnE3PzBCw1tgFwSH97zGs+7y3DVXYNY0ldTUtdkbpkAxG5ylax88xrd+de+RA Mcbc5JCJYIqWNMKEsLEwnyAxpjMCQARxBzEsM+HgXJqGXiEjVoL4M4egHHiITSvMiC TLBr8zBqhFfcWZo4Y++C/5hGr/N6l3PYOoe7pY0oBHcVV9pmy711cEEVIaxHbaBoB+ AtsCIatLsFKhg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 16 May 2016 21:51:17 +0900 Message-Id: <1463403086-25362-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463403086-25362-1-git-send-email-yamada.masahiro@socionext.com> References: <1463403086-25362-1-git-send-email-yamada.masahiro@socionext.com> Cc: Marek Vasut Subject: [U-Boot] [PATCH v2 04/13] usb: xhci: add struct devrequest declaration to xhci.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If xhci.h is included without include/usb.h, the compiler complains like follows: warning: 'struct devrequest' declared inside parameter list We have two options to teach the compiler that devrequest is a structure: [1] Declare "struct devrequest;" in xhci.h [2] Include from xhci.h This commit takes [1] because nothing else in xhci.h depends on include/usb.h. [2] would require the compiler additional header parsing. Signed-off-by: Masahiro Yamada --- Changes in v2: - Rephrase git-log drivers/usb/host/xhci.h | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 2afa386..16dd61a 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -1252,6 +1252,8 @@ void xhci_acknowledge_event(struct xhci_ctrl *ctrl); union xhci_trb *xhci_wait_for_event(struct xhci_ctrl *ctrl, trb_type expected); int xhci_bulk_tx(struct usb_device *udev, unsigned long pipe, int length, void *buffer); + +struct devrequest; int xhci_ctrl_tx(struct usb_device *udev, unsigned long pipe, struct devrequest *req, int length, void *buffer); int xhci_check_maxpacket(struct usb_device *udev);