Re: [PATCH] iio/inkern.c Use list_for_each_entry_safe

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

 



Hi Anshul,

[auto build test ERROR on v4.4-rc4]
[also build test ERROR on next-20151208]

url:    https://github.com/0day-ci/linux/commits/Anshul-Garg/iio-inkern-c-Use-list_for_each_entry_safe/20151209-005155
config: sh-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   drivers/iio/inkern.c: In function 'iio_map_array_unregister':
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
   drivers/iio/inkern.c:67:2: error: 'iio_map_listi' undeclared (first use in this function)
   drivers/iio/inkern.c:67:2: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
   drivers/iio/inkern.c:67:2: warning: left-hand operand of comma expression has no effect [-Wunused-value]
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'
>> drivers/iio/inkern.c:67:2: error: 'struct iio_map_internal' has no member named 'list'

vim +67 drivers/iio/inkern.c

    61	int iio_map_array_unregister(struct iio_dev *indio_dev)
    62	{
    63		int ret = -ENODEV;
    64		struct iio_map_internal *mapi, *next;
    65	
    66		mutex_lock(&iio_map_list_lock);
  > 67		list_for_each_entry_safe(mapi, next, &iio_map_listi, list) {
    68			if (indio_dev == mapi->indio_dev) {
    69				list_del(&mapi->l);
    70				kfree(mapi);

---
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]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux