Skip to contentSkip to conversation

microblaze/pci: Fix compile error

PATCH Applied Hiroo Matsumoto 2 participants 2 messages May 10, 2012 – May 15, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze/pci: Fix compile error

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

arch/microblaze/pci/pci-common.c +1 -0
index 85f2ac1..90f8238 100644
@@ -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;
 
maintainer Applied
#1 lore raw
Quoted 30 lines · Hiroo Matsumoto

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

arch/microblaze/pci/pci-common.c +0 -0
index 85f2ac1..90f8238 100644

arch/microblaze/pci/pci-common.c int pcibios_enable_device(struct pci_dev *dev, int mask) · line 1521

Quoted 7 lines
arch/microblaze/pci/pci-common.c +1 -0
@@ -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