[ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del'

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

 



Hi David,

I'm sorry for bringing this build failure issue. Please help apply the following change to commit  https://git.kernel.org/pub/scm/linux/kernel/git/davem/ide.git/commit/?id=6a0033457f2380852a3a4138d4c79571a5b51be6

   103          list_for_each_entry_safe(d, tmp, &ide_pci_drivers, node) {
 > 104                  list_del(&d->node);

Thanks!

________________________________________

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/ide.git master
head:   6a0033457f2380852a3a4138d4c79571a5b51be6
commit: 6a0033457f2380852a3a4138d4c79571a5b51be6 [1/1] drivers/ide: convert to list_for_each_entry_safe()
config: parisc-generic-64bit_defconfig (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.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 6a0033457f2380852a3a4138d4c79571a5b51be6
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=parisc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/ide/ide-scan-pci.c: In function 'ide_scan_pcibus':
>> drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del'
     104 |   list_del(d->node);
         |            ~^~~~~~
         |             |
         |             struct list_head
   In file included from include/linux/module.h:12,
                    from drivers/ide/ide-scan-pci.c:12:
   include/linux/list.h:144:47: note: expected 'struct list_head *' but argument is of type 'struct list_head'
     144 | static inline void list_del(struct list_head *entry)
         |                             ~~~~~~~~~~~~~~~~~~^~~~~

vim +/list_del +104 drivers/ide/ide-scan-pci.c

    80
    81  /**
    82   *      ide_scan_pcibus         -       perform the initial IDE driver scan
    83   *
    84   *      Perform the initial bus rather than driver ordered scan of the
    85   *      PCI drivers. After this all IDE pci handling becomes standard
    86   *      module ordering not traditionally ordered.
    87   */
    88
    89  static int __init ide_scan_pcibus(void)
    90  {
    91          struct pci_dev *dev = NULL;
    92          struct pci_driver *d, *tmp;
    93
    94          pre_init = 0;
    95          for_each_pci_dev(dev)
    96                  ide_scan_pcidev(dev);
    97
    98          /*
    99           *      Hand the drivers over to the PCI layer now we
   100           *      are post init.
   101           */
   102
   103          list_for_each_entry_safe(d, tmp, &ide_pci_drivers, node) {
 > 104                  list_del(d->node);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#




[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux