提交 ad1e7b97 编写于 作者: D David S. Miller

cdc: Fix build warning.

   In file included from drivers/usb/gadget/function/u_serial.h:16:0,
                    from drivers/usb/gadget/function/f_acm.c:23:
>> include/linux/usb/cdc.h:47:5: warning: 'struct usb_interface' declared inside parameter list
        int buflen);
        ^
>> include/linux/usb/cdc.h:47:5: warning: its scope is only this definition or declaration, which is probably not what you want
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8b711d6d
...@@ -40,7 +40,7 @@ struct usb_cdc_parsed_header { ...@@ -40,7 +40,7 @@ struct usb_cdc_parsed_header {
bool phonet_magic_present; bool phonet_magic_present;
}; };
struct usb_interface;
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr, int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
struct usb_interface *intf, struct usb_interface *intf,
u8 *buffer, u8 *buffer,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册