Hi Luis, [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on next-20161207] [cannot apply to v4.9-rc8] [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/Luis-Oliveira/i2c-designware-Refactoring-of-the-i2c-designware/20161208-044045 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: i386-randconfig-h0-12081126 (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=i386 All warnings (new ones prefixed by >>): drivers/i2c/busses/i2c-designware-slave.c: In function 'i2c_dw_irq_handler_slave': drivers/i2c/busses/i2c-designware-slave.c:294:3: error: implicit declaration of function 'i2c_slave_event' [-Werror=implicit-function-declaration] i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_REQUESTED, &val); ^~~~~~~~~~~~~~~ drivers/i2c/busses/i2c-designware-slave.c:294:31: error: 'I2C_SLAVE_WRITE_REQUESTED' undeclared (first use in this function) i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_REQUESTED, &val); ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/i2c/busses/i2c-designware-slave.c:294:31: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/err.h:4:0, from drivers/i2c/busses/i2c-designware-slave.c:26: drivers/i2c/busses/i2c-designware-slave.c:301:6: error: 'I2C_SLAVE_WRITE_RECEIVED' undeclared (first use in this function) I2C_SLAVE_WRITE_RECEIVED, &val)) { ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/i2c/busses/i2c-designware-slave.c:300:5: note: in expansion of macro 'if' if (!i2c_slave_event(dev->slave, ^~ drivers/i2c/busses/i2c-designware-slave.c:313:7: error: 'I2C_SLAVE_READ_REQUESTED' undeclared (first use in this function) I2C_SLAVE_READ_REQUESTED, &val)) ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ drivers/i2c/busses/i2c-designware-slave.c:312:4: note: in expansion of macro 'if' if (!i2c_slave_event(dev->slave, ^~ drivers/i2c/busses/i2c-designware-slave.c:319:36: error: 'I2C_SLAVE_READ_PROCESSED' undeclared (first use in this function) if (!i2c_slave_event(dev->slave, I2C_SLAVE_READ_PROCESSED, ^ include/linux/compiler.h:149:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ drivers/i2c/busses/i2c-designware-slave.c:319:3: note: in expansion of macro 'if' if (!i2c_slave_event(dev->slave, I2C_SLAVE_READ_PROCESSED, ^~ drivers/i2c/busses/i2c-designware-slave.c:323:31: error: 'I2C_SLAVE_STOP' undeclared (first use in this function) i2c_slave_event(dev->slave, I2C_SLAVE_STOP, &val); ^~~~~~~~~~~~~~ drivers/i2c/busses/i2c-designware-slave.c: At top level: drivers/i2c/busses/i2c-designware-slave.c:358:2: error: unknown field 'reg_slave' specified in initializer .reg_slave = i2c_dw_reg_slave, ^ drivers/i2c/busses/i2c-designware-slave.c:358:15: warning: excess elements in struct initializer .reg_slave = i2c_dw_reg_slave, ^~~~~~~~~~~~~~~~ drivers/i2c/busses/i2c-designware-slave.c:358:15: note: (near initialization for 'i2c_dw_algo') drivers/i2c/busses/i2c-designware-slave.c:359:2: error: unknown field 'unreg_slave' specified in initializer .unreg_slave = i2c_dw_unreg_slave, ^ drivers/i2c/busses/i2c-designware-slave.c:359:17: warning: excess elements in struct initializer .unreg_slave = i2c_dw_unreg_slave, ^~~~~~~~~~~~~~~~~~ drivers/i2c/busses/i2c-designware-slave.c:359:17: note: (near initialization for 'i2c_dw_algo') cc1: some warnings being treated as errors vim +/if +300 drivers/i2c/busses/i2c-designware-slave.c 288 dw_readl(dev, DW_IC_CLR_START_DET); 289 if (stat & DW_IC_INTR_ACTIVITY) 290 dw_readl(dev, DW_IC_CLR_ACTIVITY); 291 if (stat & DW_IC_INTR_RX_OVER) 292 dw_readl(dev, DW_IC_CLR_RX_OVER); 293 if ((stat & DW_IC_INTR_RX_FULL) && (stat & DW_IC_INTR_STOP_DET)) > 294 i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_REQUESTED, &val); 295 296 if (slave_activity) { 297 if (stat & DW_IC_INTR_RD_REQ) { 298 if (stat & DW_IC_INTR_RX_FULL) { 299 val = dw_readl(dev, DW_IC_DATA_CMD); > 300 if (!i2c_slave_event(dev->slave, 301 I2C_SLAVE_WRITE_RECEIVED, &val)) { 302 dev_dbg(dev->dev, "Byte %X acked!", 303 val); --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip