
16 May
2016
16 May
'16
7:42 p.m.
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