[U-Boot] [PATCH v2 04/13] usb: xhci: add struct devrequest declaration to xhci.h

Marek Vasut marex at denx.de
Mon May 16 19:42:56 CEST 2016


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 <include/usb.h> 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 <yamada.masahiro at socionext.com>

Applied, thanks!

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list