public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Looks like your PCI patch broke the PPC build (and others)?
@ 2003-06-11 19:15 Miles Lane
  2003-06-11 20:28 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Miles Lane @ 2003-06-11 19:15 UTC (permalink / raw)
  To: Greg KH, linux-kernel

http://marc.theaimsgroup.com/?l=linux-kernel&m=105527406918793&w=2

   CC      drivers/pci/probe.o
drivers/pci/probe.c: In function `pci_scan_device':
drivers/pci/probe.c:532: dereferencing pointer to incomplete type
make[3]: *** [drivers/pci/probe.o] Error 1

--------------

diff -Nru a/drivers/pci/probe.c b/drivers/pci/probe.c
--- a/drivers/pci/probe.c	Tue Jun 10 11:16:11 2003
+++ b/drivers/pci/probe.c	Tue Jun 10 11:16:11 2003
@@ -529,7 +529,8 @@
  	pci_name_device(dev);

  	/* now put in global tree */
-	strcpy(dev->dev.bus_id,dev->slot_name);
+	sprintf(dev->dev.bus_id, "%04x:%s", pci_domain_nr(bus),
+			dev->slot_name);
  	dev->dev.dma_mask = &dev->dma_mask;

  	return dev;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Looks like your PCI patch broke the PPC build (and others)?
  2003-06-11 19:15 Looks like your PCI patch broke the PPC build (and others)? Miles Lane
@ 2003-06-11 20:28 ` Greg KH
  2003-06-12  7:10   ` Paul Mackerras
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2003-06-11 20:28 UTC (permalink / raw)
  To: Miles Lane, willy; +Cc: linux-kernel

On Wed, Jun 11, 2003 at 12:15:34PM -0700, Miles Lane wrote:
> http://marc.theaimsgroup.com/?l=linux-kernel&m=105527406918793&w=2
> 
>   CC      drivers/pci/probe.o
> drivers/pci/probe.c: In function `pci_scan_device':
> drivers/pci/probe.c:532: dereferencing pointer to incomplete type
> make[3]: *** [drivers/pci/probe.o] Error 1

Not my patch, Matthew's :)

I think the PPC developers have a fix for this.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Looks like your PCI patch broke the PPC build (and others)?
  2003-06-11 20:28 ` Greg KH
@ 2003-06-12  7:10   ` Paul Mackerras
  2003-06-12 13:35     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Mackerras @ 2003-06-12  7:10 UTC (permalink / raw)
  To: Greg KH; +Cc: Miles Lane, willy, linux-kernel

Greg KH writes:

> Not my patch, Matthew's :)
> 
> I think the PPC developers have a fix for this.

Just #include <asm/pci-bridge.h> at the top of include/asm-ppc/pci.h.
I'll push that change to Linus.

Paul.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Looks like your PCI patch broke the PPC build (and others)?
  2003-06-12  7:10   ` Paul Mackerras
@ 2003-06-12 13:35     ` Benjamin Herrenschmidt
  2003-06-12 22:31       ` Paul Mackerras
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2003-06-12 13:35 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Greg KH, Miles Lane, willy, linux-kernel mailing list

On Thu, 2003-06-12 at 09:10, Paul Mackerras wrote:
> Greg KH writes:
> 
> > Not my patch, Matthew's :)
> > 
> > I think the PPC developers have a fix for this.
> 
> Just #include <asm/pci-bridge.h> at the top of include/asm-ppc/pci.h.
> I'll push that change to Linus.

Well... asm/pci-bridge.h includes linux/pci.h which includes asm/pci.h,
so we have a circular include here...

What I did in my tree is to move the definition of pci_controller
from asm/pci-bridge.h to asm/pci.h. I'm now considering removing
asm/pci-bridge.h, what do you think ?

Ben.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Looks like your PCI patch broke the PPC build (and others)?
  2003-06-12 13:35     ` Benjamin Herrenschmidt
@ 2003-06-12 22:31       ` Paul Mackerras
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Mackerras @ 2003-06-12 22:31 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Greg KH, Miles Lane, willy, linux-kernel mailing list

Benjamin Herrenschmidt writes:

> Well... asm/pci-bridge.h includes linux/pci.h which includes asm/pci.h,
> so we have a circular include here...

True, but it seems that the multiple inclusion protection saves us. :)

> What I did in my tree is to move the definition of pci_controller
> from asm/pci-bridge.h to asm/pci.h. I'm now considering removing
> asm/pci-bridge.h, what do you think ?

We could do that.  It might be simpler to just take pci_domain_nr out
of line again though.

Paul.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-12 22:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-11 19:15 Looks like your PCI patch broke the PPC build (and others)? Miles Lane
2003-06-11 20:28 ` Greg KH
2003-06-12  7:10   ` Paul Mackerras
2003-06-12 13:35     ` Benjamin Herrenschmidt
2003-06-12 22:31       ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox