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

[PATCH] USB: usb_cdc build fix

With older gcc's:

In file included from drivers/usb/class/cdc-acm.c:63:
include/linux/usb_cdc.h:117: field `bDetailData' has incomplete type

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff -puN include/linux/usb_cdc.h~usb_cdc-build-fix include/linux/usb_cdc.h

authored by

akpm@osdl.org and committed by
Greg K-H
84d79cb8 115c1ce5

+1 -1
+1 -1
include/linux/usb_cdc.h
··· 114 114 115 115 /* type is associated with mdlm_desc.bGUID */ 116 116 __u8 bGuidDescriptorType; 117 - __u8 bDetailData[]; 117 + __u8 bDetailData[0]; 118 118 } __attribute__ ((packed)); 119 119 120 120 /*-------------------------------------------------------------------------*/