Re: linux-next build error "cec-adap.c:141: error: unknown field ‘lost_msgs’ specified in initializer"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Fri, 8 Jul 2016 15:55:44 -0700
Vinson Lee <vlee@xxxxxxxxxxxxxxx> escreveu:

> Hi.
> 
> Commit 9881fe0ca187 "[media] cec: add HDMI CEC framework (adapter)"
> introduced this build error with GCC 4.4.
> 
>   CC [M]  drivers/staging/media/cec/cec-adap.o
> 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
> 
> Cheers,
> Vinson

Hmm... 4.4 is old ;)

Could you please check if this quick hack solves the issue?


diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c
index 7df61870473c..ebb30e656d99 100644
--- a/drivers/staging/media/cec/cec-adap.c
+++ b/drivers/staging/media/cec/cec-adap.c
@@ -138,7 +138,7 @@ static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg)
 {
 	static const struct cec_event ev_lost_msg = {
 		.event = CEC_EVENT_LOST_MSGS,
-		.lost_msgs.lost_msgs = 1,
+		.lost_msgs = { .lost_msgs = 1 },
 	};
 	struct cec_msg_entry *entry;
 


Thanks,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux