[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201604210259.xtIWnZqM%fengguang.wu@intel.com>
Date: Thu, 21 Apr 2016 02:17:59 +0800
From: kbuild test robot <lkp@...el.com>
To: Crestez Dan Leonard <leonard.crestez@...el.com>
Cc: kbuild-all@...org, Jonathan Cameron <jic23@...nel.org>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Daniel Baluta <daniel.baluta@...el.com>,
Crestez Dan Leonard <leonard.crestez@...el.com>,
linux-i2c@...r.kernel.org, Wolfram Sang <wsa@...-dreams.de>,
devicetree@...r.kernel.org, Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Peter Rosin <peda@...ntia.se>
Subject: Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master
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
Download attachment ".config.gz" of type "application/octet-stream" (21629 bytes)
Powered by blists - more mailing lists