Skip to contentSkip to conversation

Export pcibios_bus_to_resource on ia64 and sparc64

PATCH New Keith Owens 1 participant 1 message Aug 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Export pcibios_bus_to_resource on ia64 and sparc64

IA64 gets *** Warning: "pcibios_bus_to_resource" [drivers/pcmcia/yenta_socket.ko] undefined!. Trivial fix, export pcibios_bus_to_resource. Also export it on sparc64, which is the only other architecture that defines pcibios_bus_to_resource but does not export it.

arch/ia64/pci/pci.c +1 -0
Index: linux/arch/ia64/pci/pci.c
===================================================================
@@ -380,6 +380,7 @@ void pcibios_bus_to_resource(struct pci_
 	res->start = region->start + offset;
 	res->end = region->end + offset;
 }
+EXPORT_SYMBOL(pcibios_bus_to_resource);
 
 static int __devinit is_valid_resource(struct pci_dev *dev, int idx)
 {
arch/sparc64/kernel/pci.c +1 -0
Index: linux/arch/sparc64/kernel/pci.c
===================================================================
@@ -540,6 +540,7 @@ void pcibios_bus_to_resource(struct pci_
 
 	pbm->parent->resource_adjust(pdev, res, root);
 }
+EXPORT_SYMBOL(pcibios_bus_to_resource);
 
 char * __init pcibios_setup(char *str)
 {