[linuxtv-media:master 1989/2402] drivers/media/cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified in initializer

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

 



Hi Hans,

FYI, the error/warning still remains.

tree:   git://linuxtv.org/media_tree.git master
head:   0779b8855c746c90b85bfe6e16d5dfa2a6a46655
commit: 6b2bbb08747a56dcf4ee33606a06025eca571260 [1989/2402] media: cec: rework the cec event handling
config: x86_64-randconfig-a0-08210006 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout 6b2bbb08747a56dcf4ee33606a06025eca571260
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/cec/cec-adap.c: In function 'cec_queue_msg_fh':
>> drivers/media/cec/cec-adap.c:167: error: unknown field 'lost_msgs' specified in initializer

vim +/lost_msgs +167 drivers/media/cec/cec-adap.c

9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  155  
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  156  /*
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  157   * Queue a new message for this filehandle.
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  158   *
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  159   * We keep a queue of at most CEC_MAX_MSG_RX_QUEUE_SZ messages. If the
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  160   * queue becomes full, then drop the oldest message and keep track
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  161   * of how many messages we've dropped.
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  162   */
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  163  static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg)
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  164  {
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  165  	static const struct cec_event ev_lost_msgs = {
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  166  		.event = CEC_EVENT_LOST_MSGS,
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25 @167  		.lost_msgs.lost_msgs = 1,
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  168  	};
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  169  	struct cec_msg_entry *entry;
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  170  
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  171  	mutex_lock(&fh->lock);
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  172  	entry = kmalloc(sizeof(*entry), GFP_KERNEL);
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  173  	if (entry) {
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  174  		entry->msg = *msg;
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  175  		/* Add new msg at the end of the queue */
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  176  		list_add_tail(&entry->list, &fh->msgs);
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  177  
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  178  		if (fh->queued_msgs < CEC_MAX_MSG_RX_QUEUE_SZ) {
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  179  			/* All is fine if there is enough room */
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  180  			fh->queued_msgs++;
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  181  			mutex_unlock(&fh->lock);
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  182  			wake_up_interruptible(&fh->wait);
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  183  			return;
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  184  		}
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  185  
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  186  		/*
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  187  		 * if the message queue is full, then drop the oldest one and
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  188  		 * send a lost message event.
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  189  		 */
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  190  		entry = list_first_entry(&fh->msgs, struct cec_msg_entry, list);
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  191  		list_del(&entry->list);
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  192  		kfree(entry);
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  193  	}
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  194  	mutex_unlock(&fh->lock);
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  195  
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  196  	/*
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  197  	 * We lost a message, either because kmalloc failed or the queue
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  198  	 * was full.
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  199  	 */
6b2bbb08 drivers/media/cec/cec-adap.c         Hans Verkuil 2017-07-11  200  	cec_queue_event_fh(fh, &ev_lost_msgs, ktime_get_ns());
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  201  }
9881fe0c drivers/staging/media/cec/cec-adap.c Hans Verkuil 2016-06-25  202  

:::::: The code at line 167 was first introduced by commit
:::::: 9881fe0ca187c213eb3a6a8e78e45ad4d1cec171 [media] cec: add HDMI CEC framework (adapter)

:::::: TO: Hans Verkuil <hans.verkuil@xxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[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