linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] make powerpc pci compile again
@ 2007-07-18 17:26 Johannes Berg
  2007-07-19  0:08 ` Michael Ellerman
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2007-07-18 17:26 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

Looks like we got a new declaration in the generic header... This fixes
compile but I don't know whether it's correct.
---
 arch/powerpc/kernel/pci-common.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- linux-2.6-git.orig/arch/powerpc/kernel/pci-common.c	2007-07-17 19:11:57.519997066 +0200
+++ linux-2.6-git/arch/powerpc/kernel/pci-common.c	2007-07-17 19:12:14.820997066 +0200
@@ -156,10 +156,12 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci
 #endif /* CONFIG_PPC_OF */
 
 /* Add sysfs properties */
-void pcibios_add_platform_entries(struct pci_dev *pdev)
+int pcibios_add_platform_entries(struct pci_dev *pdev)
 {
 #ifdef CONFIG_PPC_OF
-	device_create_file(&pdev->dev, &dev_attr_devspec);
+	return device_create_file(&pdev->dev, &dev_attr_devspec);
+#else
+	return 0;
 #endif /* CONFIG_PPC_OF */
 }
 

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

* Re: [PATCH] make powerpc pci compile again
  2007-07-18 17:26 [PATCH] make powerpc pci compile again Johannes Berg
@ 2007-07-19  0:08 ` Michael Ellerman
  2007-07-19  0:23   ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2007-07-19  0:08 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linuxppc-dev, Paul Mackerras

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

On Wed, 2007-07-18 at 19:26 +0200, Johannes Berg wrote:
> Looks like we got a new declaration in the generic header... This fixes
> compile but I don't know whether it's correct.

We got a new declaration, along with updated C code in pci_64.c and
pci_32.c, but when that was merged with the creation of pci-common.c it
all went fubar.

Your patch is correct, but I think Tony has already sent it.

cheers

> --- linux-2.6-git.orig/arch/powerpc/kernel/pci-common.c	2007-07-17 19:11:57.519997066 +0200
> +++ linux-2.6-git/arch/powerpc/kernel/pci-common.c	2007-07-17 19:12:14.820997066 +0200
> @@ -156,10 +156,12 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci
>  #endif /* CONFIG_PPC_OF */
>  
>  /* Add sysfs properties */
> -void pcibios_add_platform_entries(struct pci_dev *pdev)
> +int pcibios_add_platform_entries(struct pci_dev *pdev)
>  {
>  #ifdef CONFIG_PPC_OF
> -	device_create_file(&pdev->dev, &dev_attr_devspec);
> +	return device_create_file(&pdev->dev, &dev_attr_devspec);
> +#else
> +	return 0;
>  #endif /* CONFIG_PPC_OF */
>  }


-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [PATCH] make powerpc pci compile again
  2007-07-19  0:08 ` Michael Ellerman
@ 2007-07-19  0:23   ` Arnd Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2007-07-19  0:23 UTC (permalink / raw)
  To: linuxppc-dev, michael; +Cc: Johannes Berg, Paul Mackerras

On Thursday 19 July 2007, Michael Ellerman wrote:
> Your patch is correct, but I think Tony has already sent it.
> 

yes, it's already upstream as of Wed Jul 18 11:03:55 2007 +1000

	Arnd <><

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

end of thread, other threads:[~2007-07-19  0:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 17:26 [PATCH] make powerpc pci compile again Johannes Berg
2007-07-19  0:08 ` Michael Ellerman
2007-07-19  0:23   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).