diff options
author | David S. Miller | 2020-04-04 18:07:59 -0700 |
---|---|---|
committer | David S. Miller | 2020-04-04 18:07:59 -0700 |
commit | 78a515f9faf3af43cf9c4f61254dd1c5b3cb2d0b (patch) | |
tree | c5252869cb99417ead62c92063cd99c5ad488bbd /drivers/ide | |
parent | 6a0033457f2380852a3a4138d4c79571a5b51be6 (diff) |
drivers/ide: Fix build regression.
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)
| ~~~~~~~~~~~~~~~~~~^~~~~
Fixes: 6a0033457f23 ("drivers/ide: convert to list_for_each_entry_safe()")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-scan-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c index 383f0d813001..b0411a1827a3 100644 --- a/drivers/ide/ide-scan-pci.c +++ b/drivers/ide/ide-scan-pci.c @@ -101,7 +101,7 @@ static int __init ide_scan_pcibus(void) */ list_for_each_entry_safe(d, tmp, &ide_pci_drivers, node) { - list_del(d->node); + list_del(&d->node); if (__pci_register_driver(d, d->driver.owner, d->driver.mod_name)) printk(KERN_ERR "%s: failed to register %s driver\n", |