Linux ATA/IDE development
 help / color / mirror / Atom feed
* [ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del'
@ 2020-04-04  3:14 kbuild test robot
  2020-04-04 11:27 ` 陈启武
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-04-04  3:14 UTC (permalink / raw)
  To: chenqiwu; +Cc: kbuild-all, linux-ide

[-- Attachment #1: Type: text/plain, Size: 2338 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 20088 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del'
  2020-04-04  3:14 [ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del' kbuild test robot
@ 2020-04-04 11:27 ` 陈启武
  0 siblings, 0 replies; 2+ messages in thread
From: 陈启武 @ 2020-04-04 11:27 UTC (permalink / raw)
  To: davem@davemloft.net; +Cc: linux-ide@vger.kernel.org


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@intel.com>

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@lists.01.org
#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! 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!******/#

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-05  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-04  3:14 [ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del' kbuild test robot
2020-04-04 11:27 ` 陈启武

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox