Skip to content

Commit

Permalink
[PATCH] USB: usb_cdc build fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
akpm@osdl.org authored and Greg K-H committed Apr 19, 2005
1 parent 115c1ce commit 84d79cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usb_cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));

/*-------------------------------------------------------------------------*/
Expand Down

0 comments on commit 84d79cb

Please sign in to comment.