Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master

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

 




Hi,

[auto build test ERROR on iio/togreg]
[also build test ERROR on v4.6-rc4 next-20160420]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Crestez-Dan-Leonard/iio-inv_mpu6050-Add-support-for-auxiliary-I2C-master/20160421-012042
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: i386-randconfig-i1-201616 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/iio/imu/inv_mpu6050/inv_mpu_core.c: In function 'inv_mpu_core_probe':
>> drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:966:11: error: implicit declaration of function 'i2c_add_adapter' [-Werror=implicit-function-declaration]
     result = i2c_add_adapter(&st->aux_master_adapter);
              ^
>> drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:983:2: error: implicit declaration of function 'i2c_del_adapter' [-Werror=implicit-function-declaration]
     i2c_del_adapter(&st->aux_master_adapter);
     ^
   cc1: some warnings being treated as errors

vim +/i2c_add_adapter +966 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c

   960		snprintf(st->aux_master_adapter.name, sizeof(st->aux_master_adapter.name),
   961				"aux-master-%s", indio_dev->name);
   962		st->aux_master_adapter.dev.of_node = of_get_child_by_name(
   963				dev->of_node, "i2c-aux-master");
   964		i2c_set_adapdata(&st->aux_master_adapter, st);
   965		/* This will also probe aux devices so transfers must work now */
 > 966		result = i2c_add_adapter(&st->aux_master_adapter);
   967		if (result < 0) {
   968			dev_err(dev, "i2x aux master register fail %d\n", result);
   969			goto out_remove_trigger;
   970		}
   971	
   972		INIT_KFIFO(st->timestamps);
   973		spin_lock_init(&st->time_stamp_lock);
   974		result = iio_device_register(indio_dev);
   975		if (result) {
   976			dev_err(dev, "IIO register fail %d\n", result);
   977			goto out_del_adapter;
   978		}
   979	
   980		return 0;
   981	
   982	out_del_adapter:
 > 983		i2c_del_adapter(&st->aux_master_adapter);
   984	out_remove_trigger:
   985		inv_mpu6050_remove_trigger(st);
   986	out_unreg_ring:

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux