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

Marek Vasut
2016-05-16T17:42:56Z

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@socionext.com>

Applied, thanks!

--
Best regards,
Marek Vasut