Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

+1 -1
+1 -1
include/linux/usb/cdc.h
··· 40 40 bool phonet_magic_present; 41 41 }; 42 42 43 - 43 + struct usb_interface; 44 44 int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr, 45 45 struct usb_interface *intf, 46 46 u8 *buffer,