Hi Sean, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.10-rc4 next-20170120] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sean-Young/IR-fixes-for-v4-11/20170121-051556 base: git://linuxtv.org/media_tree.git master config: x86_64-randconfig-x016-201703 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/uapi/linux/capability.h:16, from include/linux/capability.h:15, from include/linux/sched.h:15, from drivers/media/rc/ir-lirc-codec.c:15: drivers/media/rc/ir-lirc-codec.c: In function 'ir_lirc_register': drivers/media/rc/ir-lirc-codec.c:358:26: error: 'RC_DRIVER_IR_RAW_TX' undeclared (first use in this function) if (dev->driver_type != RC_DRIVER_IR_RAW_TX) ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/media/rc/ir-lirc-codec.c:358:2: note: in expansion of macro 'if' if (dev->driver_type != RC_DRIVER_IR_RAW_TX) ^~ drivers/media/rc/ir-lirc-codec.c:358:26: note: each undeclared identifier is reported only once for each function it appears in if (dev->driver_type != RC_DRIVER_IR_RAW_TX) ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/media/rc/ir-lirc-codec.c:358:2: note: in expansion of macro 'if' if (dev->driver_type != RC_DRIVER_IR_RAW_TX) ^~ vim +/if +358 drivers/media/rc/ir-lirc-codec.c 342 struct lirc_buffer *rbuf; 343 int rc = -ENOMEM; 344 unsigned long features = 0; 345 346 drv = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL); 347 if (!drv) 348 return rc; 349 350 rbuf = kzalloc(sizeof(struct lirc_buffer), GFP_KERNEL); 351 if (!rbuf) 352 goto rbuf_alloc_failed; 353 354 rc = lirc_buffer_init(rbuf, sizeof(int), LIRCBUF_SIZE); 355 if (rc) 356 goto rbuf_init_failed; 357 > 358 if (dev->driver_type != RC_DRIVER_IR_RAW_TX) 359 features |= LIRC_CAN_REC_MODE2; 360 if (dev->tx_ir) { 361 features |= LIRC_CAN_SEND_PULSE; 362 if (dev->s_tx_mask) 363 features |= LIRC_CAN_SET_TRANSMITTER_MASK; 364 if (dev->s_tx_carrier) 365 features |= LIRC_CAN_SET_SEND_CARRIER; 366 if (dev->s_tx_duty_cycle) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip