From: akpm@osdl.org Date: Tue, 19 Apr 2005 00:39:21 +0000 (-0700) Subject: [PATCH] USB: usb_cdc build fix X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=84d79cb8db2811140c911df7ce3e3354cfa018c4;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Greg Kroah-Hartman diff -puN include/linux/usb_cdc.h~usb_cdc-build-fix include/linux/usb_cdc.h --- diff --git a/include/linux/usb_cdc.h b/include/linux/usb_cdc.h index 1b68c122279a..f22d6beecc73 100644 --- a/include/linux/usb_cdc.h +++ b/include/linux/usb_cdc.h @@ -114,7 +114,7 @@ struct usb_cdc_mdlm_detail_desc { /* type is associated with mdlm_desc.bGUID */ __u8 bGuidDescriptorType; - __u8 bDetailData[]; + __u8 bDetailData[0]; } __attribute__ ((packed)); /*-------------------------------------------------------------------------*/