Hi Peter,

[auto build test WARNING on wsa/i2c/for-next]
[also build test WARNING on v4.4-rc8 next-20160104]
[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/Peter-Rosin/i2c-mux-cleanup-and-locking-update/20160104-231355
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux i2c/for-next
config: i386-randconfig-i0-01042049 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/iio/imu/inv_mpu6050/inv_mpu_core.c: In function 'inv_mpu_probe':
>> drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:845:40: warning: passing argument 
>> 1 of 'i2c_add_mux_adapter' from incompatible pointer type 
>> [-Wincompatible-pointer-types]
     st->mux_adapter = i2c_add_mux_adapter(client->adapter,
                                           ^
   In file included from drivers/iio/imu/inv_mpu6050/inv_mpu_core.c:26:0:
   include/linux/i2c-mux.h:48:21: note: expected 'struct i2c_mux_core *' but 
argument is of type 'struct i2c_adapter *'
    struct i2c_adapter *i2c_add_mux_adapter(struct i2c_mux_core *muxc,
                        ^
--
   drivers/of/unittest.c: In function 'unittest_i2c_mux_probe':
>> drivers/of/unittest.c:1730:38: warning: passing argument 1 of 
>> 'i2c_add_mux_adapter' from incompatible pointer type 
>> [-Wincompatible-pointer-types]
      stm->adap[i] = i2c_add_mux_adapter(adap, dev, client,
                                         ^
   In file included from drivers/of/unittest.c:24:0:
   include/linux/i2c-mux.h:48:21: note: expected 'struct i2c_mux_core *' but 
argument is of type 'struct i2c_adapter *'
    struct i2c_adapter *i2c_add_mux_adapter(struct i2c_mux_core *muxc,
                        ^

vim +/i2c_add_mux_adapter +845 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c

452204ae Sachin Kamat        2013-07-30  829            return result;
09a642b7 Ge Gao              2013-02-02  830    }
09a642b7 Ge Gao              2013-02-02  831    result = 
inv_mpu6050_probe_trigger(indio_dev);
09a642b7 Ge Gao              2013-02-02  832    if (result) {
09a642b7 Ge Gao              2013-02-02  833            
dev_err(&st->client->dev, "trigger probe fail %d\n", result);
09a642b7 Ge Gao              2013-02-02  834            goto out_unreg_ring;
09a642b7 Ge Gao              2013-02-02  835    }
09a642b7 Ge Gao              2013-02-02  836  
09a642b7 Ge Gao              2013-02-02  837    INIT_KFIFO(st->timestamps);
09a642b7 Ge Gao              2013-02-02  838    
spin_lock_init(&st->time_stamp_lock);
09a642b7 Ge Gao              2013-02-02  839    result = 
iio_device_register(indio_dev);
09a642b7 Ge Gao              2013-02-02  840    if (result) {
09a642b7 Ge Gao              2013-02-02  841            
dev_err(&st->client->dev, "IIO register fail %d\n", result);
09a642b7 Ge Gao              2013-02-02  842            goto out_remove_trigger;
09a642b7 Ge Gao              2013-02-02  843    }
09a642b7 Ge Gao              2013-02-02  844  
3a2ecc3d Srinivas Pandruvada 2014-12-05 @845    st->mux_adapter = 
i2c_add_mux_adapter(client->adapter,
3a2ecc3d Srinivas Pandruvada 2014-12-05  846                                    
      &client->dev,
3a2ecc3d Srinivas Pandruvada 2014-12-05  847                                    
      indio_dev,
3a2ecc3d Srinivas Pandruvada 2014-12-05  848                                    
      0, 0, 0,
3a2ecc3d Srinivas Pandruvada 2014-12-05  849                                    
      inv_mpu6050_select_bypass,
3a2ecc3d Srinivas Pandruvada 2014-12-05  850                                    
      inv_mpu6050_deselect_bypass);
3a2ecc3d Srinivas Pandruvada 2014-12-05  851    if (!st->mux_adapter) {
3a2ecc3d Srinivas Pandruvada 2014-12-05  852            result = -ENODEV;
3a2ecc3d Srinivas Pandruvada 2014-12-05  853            goto out_unreg_device;

:::::: The code at line 845 was first introduced by commit
:::::: 3a2ecc3d2dce6e051b6afc319bb380c829e4e4fd iio: imu: inv_mpu6050: Add i2c 
mux for by pass

:::::: TO: Srinivas Pandruvada <srinivas.pandruv...@linux.intel.com>
:::::: CC: Jonathan Cameron <ji...@kernel.org>

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

Attachment: .config.gz
Description: Binary data

Reply via email to