[PATCH] USB: usb_cdc build fix
authorakpm@osdl.org <akpm@osdl.org>
Tue, 19 Apr 2005 00:39:21 +0000 (17:39 -0700)
committerGreg K-H <gregkh@suse.de>
Tue, 19 Apr 2005 00:39:21 +0000 (17:39 -0700)
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

include/linux/usb_cdc.h

index 1b68c122279a82826aea36f02c80edb2fed384b6..f22d6beecc73172309bdf22b6ddbb4be2f1b51c8 100644 (file)
@@ -114,7 +114,7 @@ struct usb_cdc_mdlm_detail_desc {
 
        /* type is associated with mdlm_desc.bGUID */
        __u8    bGuidDescriptorType;
 
        /* type is associated with mdlm_desc.bGUID */
        __u8    bGuidDescriptorType;
-       __u8    bDetailData[];
+       __u8    bDetailData[0];
 } __attribute__ ((packed));
 
 /*-------------------------------------------------------------------------*/
 } __attribute__ ((packed));
 
 /*-------------------------------------------------------------------------*/