[platform-drivers-x86:review-dvhart-mellanox-v10 4/9] drivers/platform/mellanox/mlxreg-hotplug.c:189:38: error: 'struct mlxreg_hotplug_device' has no member named 'nr'

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

 



tree:   git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git review-dvhart-mellanox-v10
head:   3cdc94b8eb7c0a029160443632fd8525c7b9fa88
commit: 4f0057fc3da29c04e2cefca9dc5b17577b3e4988 [4/9] FIXME platform/mellanox: Remove redundant dev_err messages on device_create
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4f0057fc3da29c04e2cefca9dc5b17577b3e4988
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

Note: the platform-drivers-x86/review-dvhart-mellanox-v10 HEAD 3cdc94b8eb7c0a029160443632fd8525c7b9fa88 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/platform/mellanox/mlxreg-hotplug.c: In function 'mlxreg_hotplug_device_create':
>> drivers/platform/mellanox/mlxreg-hotplug.c:189:38: error: 'struct mlxreg_hotplug_device' has no member named 'nr'
     item->adapter = i2c_get_adapter(item->nr);
                                         ^~

vim +189 drivers/platform/mellanox/mlxreg-hotplug.c

   185	
   186	static int mlxreg_hotplug_device_create(struct device *dev,
   187						struct mlxreg_hotplug_device *item)
   188	{
 > 189		item->adapter = i2c_get_adapter(item->nr);
   190		if (!item->adapter)
   191			return -EFAULT;
   192	
   193		item->client = i2c_new_device(item->adapter, &item->brdinfo);
   194		if (!item->client) {
   195			i2c_put_adapter(item->adapter);
   196			item->adapter = NULL;
   197			return -EFAULT;
   198		}
   199	
   200		return 0;
   201	}
   202	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux