Skip to content

Commit

Permalink
[media] cec-adap.c: work around gcc-4.4.4 anon union initializer bug
Browse files Browse the repository at this point in the history
drivers/staging/media/cec/cec-adap.c: In function 'cec_queue_msg_fh':
drivers/staging/media/cec/cec-adap.c:141: error: unknown field 'lost_msgs' specified in initializer

Fixes: 9881fe0 ("[media] cec: add HDMI CEC framework (adapter)")
Cc: Hans Verkuil <[email protected]>
Cc: Kamil Debski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
akpm00 authored and mchehab committed Jul 12, 2016
1 parent 9d01315 commit 6a91d60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/staging/media/cec/cec-adap.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ static void cec_queue_event(struct cec_adapter *adap,
static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg)
{
static const struct cec_event ev_lost_msg = {
.ts = 0,
.event = CEC_EVENT_LOST_MSGS,
.lost_msgs.lost_msgs = 1,
.flags = 0,
{
.lost_msgs.lost_msgs = 1,
},
};
struct cec_msg_entry *entry;

Expand Down

0 comments on commit 6a91d60

Please sign in to comment.