On Mon, Apr 17, 2006 at 01:26:38PM -0700, David S. Miller wrote: > From: "David S. Miller" <davem@xxxxxxxxxxxxx> > Date: Mon, 17 Apr 2006 13:17:05 -0700 (PDT) > > > > Forwarded from linux-scsi. > > ... > > > pcibios_resource_to_bus is a new function which is inline in > > > asm-generic/pci.h. However, sparc64 overrides it as an external > > > function which is in arch/sparc64/kernel/pci.c, so this looks like some > > > type of sparc issue. "new" in the sense of "2 years old"? 2003-03-16 rmk [PCI] pci-8: pci_resource_to_bus() > > Why does the SYM2 driver possible even need this symbol? > > That's what I'd like to have explained. Because the firmware needs to be programmed with the bus address. It's not unique in this; the Emulex lpfc driver should also be using this function. > If you're going to do stuff like this, being that you're the > first driver to ever make direct usage of this interface, > please double check the exports on all platforms so that you > haven't broken the build of the driver as you have on sparc64. Er, pcmcia was already using it: ./drivers/pcmcia/i82092.c: pcibios_resource_to_bus(sock_info->dev, ®ion, mem->res); ./drivers/pcmcia/yenta_socket.c: pcibios_resource_to_bus(socket->dev, ®ion, mem->res); ./drivers/pcmcia/yenta_socket.c: pcibios_resource_to_bus(socket->dev, ®ion, &dev->resource[0]); I suppose you don't test pci-pcmcia adapters very often on sparc64. Is there a problem with adding the symbol export? I noticed that v850 also doesn't export that symbol. - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html