From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 16 May 2016 19:42:56 +0200 Subject: [U-Boot] [PATCH v2 04/13] usb: xhci: add struct devrequest declaration to xhci.h In-Reply-To: <1463403086-25362-5-git-send-email-yamada.masahiro@socionext.com> References: <1463403086-25362-1-git-send-email-yamada.masahiro@socionext.com> <1463403086-25362-5-git-send-email-yamada.masahiro@socionext.com> Message-ID: <573A06A0.5090409@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/16/2016 02:51 PM, Masahiro Yamada wrote: > 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 Applied, thanks! -- Best regards, Marek Vasut