Skip to contentSkip to conversation

PCI: versatile: include pci.h

PATCH In review Arnd Bergmann 2 participants 2 messages May 28, 2018 – May 30, 2018 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: versatile: include pci.h

Two patches for PCI host drivers clashed recently, leading to a broken build for versatile-pci:

drivers/pci/host/pci-versatile.c: In function 'versatile_pci_parse_request_of_pci_ranges':
drivers/pci/host/pci-versatile.c:70:8: error: implicit declaration of function 'devm_of_pci_get_host_bridge_resources'; did you mean 'pci_get_host_bridge_device'? [-Werror=implicit-function-declaration]

This adds the missing header inclusion that became necessary now.

Fixes 9e2aee80c78d ("PCI: Move private DT related functions into private header")
Fixes 64720fd1f630 ("PCI: Rework of_pci_get_host_bridge_resources() to devm_of_pci_get_host_bridge_resources()")
---
 drivers/pci/host/pci-versatile.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/host/pci-versatile.c +2 -0
index ff2cd12b3978..994f32061b32 100644
@@ -15,6 +15,8 @@
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 
+#include "../pci.h"
+
 static void __iomem *versatile_pci_base;
 static void __iomem *versatile_cfg_base[2];
 
Signature · 1 line
2.9.0
#1 lore raw
Quoted 11 lines · Arnd Bergmann

Two patches for PCI host drivers clashed recently, leading to a broken build for versatile-pci:

drivers/pci/host/pci-versatile.c: In function 'versatile_pci_parse_request_of_pci_ranges':
drivers/pci/host/pci-versatile.c:70:8: error: implicit declaration of function 'devm_of_pci_get_host_bridge_resources'; did you mean 'pci_get_host_bridge_device'? [-Werror=implicit-function-declaration]

This adds the missing header inclusion that became necessary now.

Fixes 9e2aee80c78d ("PCI: Move private DT related functions into private header")
Fixes 64720fd1f630 ("PCI: Rework of_pci_get_host_bridge_resources() to devm_of_pci_get_host_bridge_resources()")

Thanks, I added this in the merge where these two commits came together, so hopefully there should be no bisection hole.

Quoted 25 lines
---
 drivers/pci/host/pci-versatile.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/host/pci-versatile.c +2 -0
index ff2cd12b3978..994f32061b32 100644
@@ -15,6 +15,8 @@
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 
+#include "../pci.h"
+
 static void __iomem *versatile_pci_base;
 static void __iomem *versatile_cfg_base[2];
 
Signature · 7 lines
2.9.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel