Skip to content

Commit

Permalink
cdc: Fix build warning.
Browse files Browse the repository at this point in the history
   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: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed Sep 15, 2015
1 parent 8b711d6 commit ad1e7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usb/cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct usb_cdc_parsed_header {
bool phonet_magic_present;
};


struct usb_interface;
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
struct usb_interface *intf,
u8 *buffer,
Expand Down

0 comments on commit ad1e7b9

Please sign in to comment.