提交 84d79cb8 编写于 作者: A akpm@osdl.org 提交者: Greg K-H

[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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>

diff -puN include/linux/usb_cdc.h~usb_cdc-build-fix include/linux/usb_cdc.h
上级 115c1ce5
...@@ -114,7 +114,7 @@ struct usb_cdc_mdlm_detail_desc { ...@@ -114,7 +114,7 @@ struct usb_cdc_mdlm_detail_desc {
/* type is associated with mdlm_desc.bGUID */ /* type is associated with mdlm_desc.bGUID */
__u8 bGuidDescriptorType; __u8 bGuidDescriptorType;
__u8 bDetailData[]; __u8 bDetailData[0];
} __attribute__ ((packed)); } __attribute__ ((packed));
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册