mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tony@bakeyournoodle.com (Tony Breeds)
To: Bret Towe <magnade@gmail.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Re: 2.6.22-git ppc build failure
Date: Wed, 18 Jul 2007 11:03:55 +1000	[thread overview]
Message-ID: <20070718010355.GV10345@bakeyournoodle.com> (raw)
In-Reply-To: <dda83e780707171104g10372341l7d2225f172153a6b@mail.gmail.com>

On Tue, Jul 17, 2007 at 11:04:57AM -0700, Bret Towe wrote:
> this is off my g4 mac mini
> latest git as of when this email was sent
> config file attached

Hi Bret,
	the patch below will fix it.

From: Tony Breeds <tony@bakeyournoodle.com>

Fix compile failure in arch/powerpc/kernel/pci-common.c

 CC      arch/powerpc/kernel/pci-common.o
arch/powerpc/kernel/pci-common.c:160: error: conflicting types for 'pcibios_add_platform_entries'
include/linux/pci.h:889: error: previous declaration of 'pcibios_add_platform_entries' was here

Fallout from the powerpc merge (489de30259e667d7bc47da9da44a0270b050cd97).

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>

---
 arch/powerpc/kernel/pci-common.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Index: working/arch/powerpc/kernel/pci-common.c
===================================================================
--- working.orig/arch/powerpc/kernel/pci-common.c	2007-07-18 10:34:55.000000000 +1000
+++ working/arch/powerpc/kernel/pci-common.c	2007-07-18 10:39:19.000000000 +1000
@@ -156,11 +156,14 @@ 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 */
+
 }
 
 char __init *pcibios_setup(char *str)

Yours Tony

  linux.conf.au        http://linux.conf.au/ || http://lca2008.linux.org.au/
  Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!


  reply	other threads:[~2007-07-18  1:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-17 18:04 Bret Towe
2007-07-18  1:03 ` Tony Breeds [this message]
2007-07-18  1:44   ` [PATCH] " Linus Torvalds
2007-07-18  2:24     ` Tony Breeds
2007-07-18  2:27       ` Linus Torvalds
2007-07-18  6:17         ` Tony Breeds
2007-07-18 17:02   ` Bret Towe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070718010355.GV10345@bakeyournoodle.com \
    --to=tony@bakeyournoodle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=magnade@gmail.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®