Skip to content

Commit 78a515f

Browse files
committed
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: 6a00334 ("drivers/ide: convert to list_for_each_entry_safe()") Reported-by: kbuild test robot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6a00334 commit 78a515f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ide/ide-scan-pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static int __init ide_scan_pcibus(void)
101101
*/
102102

103103
list_for_each_entry_safe(d, tmp, &ide_pci_drivers, node) {
104-
list_del(d->node);
104+
list_del(&d->node);
105105
if (__pci_register_driver(d, d->driver.owner,
106106
d->driver.mod_name))
107107
printk(KERN_ERR "%s: failed to register %s driver\n",

0 commit comments

Comments
 (0)