Linux ATA/IDE development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: chenqiwu <chenqiwu@xiaomi.com>
Cc: kbuild-all@lists.01.org, linux-ide@vger.kernel.org
Subject: [ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del'
Date: Sat, 4 Apr 2020 11:14:20 +0800	[thread overview]
Message-ID: <202004041117.BRMQBZTk%lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2020-04-04  3:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-04  3:14 kbuild test robot [this message]
2020-04-04 11:27 ` [ide:master 1/1] drivers/ide/ide-scan-pci.c:104:13: error: incompatible type for argument 1 of 'list_del' 陈启武

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202004041117.BRMQBZTk%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenqiwu@xiaomi.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox