]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
cdc: Fix build warning.
authorDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 20:25:03 +0000 (13:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 20:25:03 +0000 (13:25 -0700)
   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>
include/linux/usb/cdc.h

index cd8f2e1c3bdf69ef483559be3274d6eb96f69977..959d0c838113bb0d3001a36a89b0274aad44d210 100644 (file)
@@ -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,