Skip to content

Commit c848c49

Browse files
akpm00torvalds
authored andcommitted
drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4
gcc-4.4.4 has issues with initialization of anonymous unions: drivers/media/cec/cec-adap.c: In function 'cec_queue_msg_fh': drivers/media/cec/cec-adap.c:184: error: unknown field 'lost_msgs' specified in initializer work around this. Fixes: 6b2bbb0 ("media: cec: rework the cec event handling") Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Hans Verkuil <hans.verkuil@cisco.com> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a47f68d commit c848c49

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/media/cec/cec-adap.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg)
181181
{
182182
static const struct cec_event ev_lost_msgs = {
183183
.event = CEC_EVENT_LOST_MSGS,
184-
.lost_msgs.lost_msgs = 1,
184+
.flags = 0,
185+
{
186+
.lost_msgs = { 1 },
187+
},
185188
};
186189
struct cec_msg_entry *entry;
187190

0 commit comments

Comments
 (0)