drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4
Subsystems (2)
PATCH 2/9 drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4
From: Andrew Morton <[email protected]>
Subject: 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 6b2bbb08747a5 ("media: cec: rework the cec event handling")
Cc Hans Verkuil <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/media/cec/cec-adap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/media/cec/cec-adap.c renamed from drivers/media/cec/cec-adap.c~drivers-media-cec-cec-adapc-fix-build-with-gcc-444 +4 -1
@@ -181,7 +181,10 @@ static void cec_queue_msg_fh(struct cec_ {static const struct cec_event ev_lost_msgs = { .event =CEC_EVENT_LOST_MSGS , - .lost_msgs.lost_msgs =1 , + .flags =0 , + { + .lost_msgs = {1 }, + }, };struct cec_msg_entry *entry;
_