Hi Hans, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 91dfed74eabcdae9378131546c446442c29bf769 commit: 6b2bbb08747a56dcf4ee33606a06025eca571260 [1210/6359] media: cec: rework the cec event handling config: x86_64-randconfig-b0-08130946 (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 >>): In file included from include/linux/bitmap.h:8, from include/linux/cpumask.h:11, from arch/x86/include/asm/cpumask.h:4, from arch/x86/include/asm/msr.h:10, from arch/x86/include/asm/processor.h:20, from arch/x86/include/asm/cpufeature.h:4, from arch/x86/include/asm/thread_info.h:52, from include/linux/thread_info.h:37, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:80, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/media//cec/cec-adap.c:22: include/linux/string.h: In function 'strncpy': include/linux/string.h:209: warning: '______f' is static but declared in inline function 'strncpy' which is not static include/linux/string.h:211: warning: '______f' is static but declared in inline function 'strncpy' which is not static include/linux/string.h: In function 'strcat': include/linux/string.h:219: warning: '______f' is static but declared in inline function 'strcat' which is not static include/linux/string.h:221: warning: '______f' is static but declared in inline function 'strcat' which is not static include/linux/string.h: In function 'strlen': include/linux/string.h:230: warning: '______f' is static but declared in inline function 'strlen' which is not static include/linux/string.h:233: warning: '______f' is static but declared in inline function 'strlen' which is not static include/linux/string.h: In function 'strnlen': include/linux/string.h:243: warning: '______f' is static but declared in inline function 'strnlen' which is not static include/linux/string.h: In function 'strlcpy': include/linux/string.h:255: warning: '______f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h:258: warning: '______f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h:260: warning: '______f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h:262: warning: '______f' is static but declared in inline function 'strlcpy' which is not static include/linux/string.h: In function 'strncat': include/linux/string.h:276: warning: '______f' is static but declared in inline function 'strncat' which is not static include/linux/string.h:280: warning: '______f' is static but declared in inline function 'strncat' which is not static include/linux/string.h: In function 'memset': include/linux/string.h:290: warning: '______f' is static but declared in inline function 'memset' which is not static include/linux/string.h:292: warning: '______f' is static but declared in inline function 'memset' which is not static include/linux/string.h: In function 'memcpy': include/linux/string.h:301: warning: '______f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h:302: warning: '______f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h:304: warning: '______f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h:307: warning: '______f' is static but declared in inline function 'memcpy' which is not static include/linux/string.h: In function 'memmove': include/linux/string.h:316: warning: '______f' is static but declared in inline function 'memmove' which is not static include/linux/string.h:317: warning: '______f' is static but declared in inline function 'memmove' which is not static include/linux/string.h:319: warning: '______f' is static but declared in inline function 'memmove' which is not static include/linux/string.h:322: warning: '______f' is static but declared in inline function 'memmove' which is not static include/linux/string.h: In function 'memscan': include/linux/string.h:331: warning: '______f' is static but declared in inline function 'memscan' which is not static include/linux/string.h:333: warning: '______f' is static but declared in inline function 'memscan' which is not static include/linux/string.h: In function 'memcmp': include/linux/string.h:342: warning: '______f' is static but declared in inline function 'memcmp' which is not static include/linux/string.h:343: warning: '______f' is static but declared in inline function 'memcmp' which is not static include/linux/string.h:345: warning: '______f' is static but declared in inline function 'memcmp' which is not static include/linux/string.h:348: warning: '______f' is static but declared in inline function 'memcmp' which is not static include/linux/string.h: In function 'memchr': include/linux/string.h:356: warning: '______f' is static but declared in inline function 'memchr' which is not static include/linux/string.h:358: warning: '______f' is static but declared in inline function 'memchr' which is not static include/linux/string.h: In function 'memchr_inv': include/linux/string.h:367: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static include/linux/string.h:369: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static include/linux/string.h: In function 'kmemdup': include/linux/string.h:378: warning: '______f' is static but declared in inline function 'kmemdup' which is not static include/linux/string.h:380: warning: '______f' is static but declared in inline function 'kmemdup' which is not static include/linux/string.h: In function 'strcpy': include/linux/string.h:390: warning: '______f' is static but declared in inline function 'strcpy' which is not static 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