PCI: versatile: Fix building error for resource_list_for_each_entry
PATCH 1/1 PCI: versatile: Fix building error for resource_list_for_each_entry
--- drivers/pci/host/pci-versatile.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/pci/host/pci-versatile.c +2 -1
@@ -22,6 +22,7 @@#include <linux/of_platform.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/resource_ext.h> static void __iomem *versatile_pci_base;static void __iomem *versatile_cfg_base[2 ];
@@ -80,7 +81,7 @@ static int versatile_pci_parse_request_of_pci_ranges(struct device *dev,if (err)return err; -resource_list_for_each_entry (win, res, list) { +resource_list_for_each_entry (win, res) {struct resource *parent, *res = win->res;switch (resource_type (res)) {
Signature · 1 line
1.7.1
Bjorn Helgaas
maintainerQuoted 18 lines · Yijing Wang
Signed-off-by Yijing Wang <[email protected]>--- drivers/pci/host/pci-versatile.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)drivers/pci/host/pci-versatile.c +1
-0@@ -22,6 +22,7 @@#include <linux/of_platform.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/resource_ext.h> static void __iomem *versatile_pci_base;static void __iomem *versatile_cfg_base[2 ];
drivers/pci/host/pci-versatile.c static int versatile_pci_parse_request_of_pci_ranges(struct device *dev, · line 84
Quoted 5 lines
drivers/pci/host/pci-versatile.c +1
-1@@ -80,7 +81,7 @@ static int versatile_pci_parse_request_of_pci_ranges(struct device *dev,if (err)return err; -resource_list_for_each_entry (win, res, list) { +resource_list_for_each_entry (win, res) {
This fix appeared in v4.0-rc3 as f1651a242809 ("PCI: versatile: Update for list_for_each_entry() API change").
Rafael merged it through his tree because I think the problem happened in 872912352c5b ("Merge tag 'pm+acpi-3.20-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm") where the conflict resolution changed list_for_each_entry() to resource_list_for_each_entry() but forgot to drop the extra parameter.
I rebased my "next" branch to v4.0-rc4, which picks up that fix.
Quoted 10 lines
drivers/pci/host/pci-versatile.c +0
-0struct resource *parent, *res = win->res;switch (resource_type (res)) {Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 28 lines · Bjorn Helgaas
Quoted 18 lines · Yijing Wang
Signed-off-by Yijing Wang <[email protected]>--- drivers/pci/host/pci-versatile.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)drivers/pci/host/pci-versatile.c +1
-0@@ -22,6 +22,7 @@#include <linux/of_platform.h> #include <linux/pci.h> #include <linux/platform_device.h> +#include <linux/resource_ext.h> static void __iomem *versatile_pci_base;static void __iomem *versatile_cfg_base[2 ];drivers/pci/host/pci-versatile.c static int versatile_pci_parse_request_of_pci_ranges(struct device *dev, · line 84
Quoted 5 lines
drivers/pci/host/pci-versatile.c +1
-1@@ -80,7 +81,7 @@ static int versatile_pci_parse_request_of_pci_ranges(struct device *dev,if (err)return err; -resource_list_for_each_entry (win, res, list) { +resource_list_for_each_entry (win, res) {This fix appeared in v4.0-rc3 as
f1651a242809("PCI: versatile: Update forlist_for_each_entry()API change").
Quoted 7 lines
Rafael merged it through his tree because I think the problem happened in
872912352c5b("Merge tag 'pm+acpi-3.20-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm") where the conflict resolution changedlist_for_each_entry()toresource_list_for_each_entry()but forgot to drop the extra parameter.I rebased my "next" branch to v4.0-rc4, which picks up that fix.
OK, thanks!
Quoted 14 lines
Quoted 12 lines
drivers/pci/host/pci-versatile.c +0
-0struct resource *parent, *res = win->res;switch (resource_type (res)) {Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Thanks! Yijing