Patchwork microblaze/pci: Fix compile error

login
register
mail settings
Submitter Hiroo Matsumoto
Date May 10, 2012, 10:44 a.m.
Message ID <4FAB9BFF.4080802@jp.fujitsu.com>
Download mbox | patch
Permalink /patch/158242/
State Accepted
Headers show

Comments

Hiroo Matsumoto - May 10, 2012, 10:44 a.m.
Hi


There is a compile error for microblaze pci because io_offset is not
declared. This patch adds declaration of io_offset.


* Compile error message
arch/microblaze/pci/pci-common.c: In function 'pcibios_setup_phb_resources':
arch/microblaze/pci/pci-common.c:1525: error: 'io_offset' undeclared
(first use in this function)
arch/microblaze/pci/pci-common.c:1525: error: (Each undeclared
identifier is reported only once
arch/microblaze/pci/pci-common.c:1525: error: for each function it
appears in.)
make[1]: *** [arch/microblaze/pci/pci-common.o] Error 1
make: *** [arch/microblaze/pci] Error 2


Regards.

Hiroo MATSUMOTO
Signed-off-by: Hiroo MATSUMOTO <matsumoto.hiroo@jp.fujitsu.com>
Bjorn Helgaas - May 15, 2012, 11:10 p.m.
On Thu, May 10, 2012 at 4:44 AM, Hiroo Matsumoto
<matsumoto.hiroo@jp.fujitsu.com> wrote:
> Hi
>
>
> There is a compile error for microblaze pci because io_offset is not
> declared. This patch adds declaration of io_offset.
>
>
> * Compile error message
> arch/microblaze/pci/pci-common.c: In function 'pcibios_setup_phb_resources':
> arch/microblaze/pci/pci-common.c:1525: error: 'io_offset' undeclared
> (first use in this function)
> arch/microblaze/pci/pci-common.c:1525: error: (Each undeclared
> identifier is reported only once
> arch/microblaze/pci/pci-common.c:1525: error: for each function it
> appears in.)
> make[1]: *** [arch/microblaze/pci/pci-common.o] Error 1
> make: *** [arch/microblaze/pci] Error 2
>
>
> Regards.
>
> Hiroo MATSUMOTO
>
> Signed-off-by: Hiroo MATSUMOTO <matsumoto.hiroo@jp.fujitsu.com>
> diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
> index 85f2ac1..90f8238 100644
> --- a/arch/microblaze/pci/pci-common.c
> +++ b/arch/microblaze/pci/pci-common.c
> @@ -1515,6 +1515,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
>
>  static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, struct list_head *resources)
>  {
> +       unsigned long io_offset;
>        struct resource *res;
>        int i;
>
>

Applied to my "next" branch, thanks.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 85f2ac1..90f8238 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -1515,6 +1515,7 @@  int pcibios_enable_device(struct pci_dev *dev, int mask)
 
 static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, struct list_head *resources)
 {
+	unsigned long io_offset;
 	struct resource *res;
 	int i;