Skip to content

Commit ad1e7b9

Browse files
committed
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8b711d6 commit ad1e7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/usb/cdc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct usb_cdc_parsed_header {
4040
bool phonet_magic_present;
4141
};
4242

43-
43+
struct usb_interface;
4444
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
4545
struct usb_interface *intf,
4646
u8 *buffer,

0 commit comments

Comments
 (0)