Skip to contentSkip to conversation

arm: fix compile failure in orion5x/dns323-setup.c

PATCH In review Paul Gortmaker 4 participants 4 messages Aug 1, 2011 – Aug 24, 2011

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

PATCH 1/1 arm: fix compile failure in orion5x/dns323-setup.c

Upstream commit d5341942d784134f2997b3ff82cd63cf71d1f932 "PCI: Make the struct pci_dev * argument of pci_fixup_irqs const." leaked an extra "const" into an actual call site (vs a proto/decl) which causes this:

arch/arm/mach-orion5x/dns323-setup.c: In function 'dns323_pci_map_irq':
arch/arm/mach-orion5x/dns323-setup.c:80: error: expected expression before 'const' arch/arm/mach-orion5x/dns323-setup.c:80: error: too few arguments to function 'orion5x_pci_map_irq' make[3]: *** [arch/arm/mach-orion5x/dns323-setup.o] Error 1

arch/arm/mach-orion5x/dns323-setup.c +1 -1
index a6eddae..c105556 100644
@@ -77,7 +77,7 @@ static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 	/*
 	 * Check for devices with hard-wired IRQs.
 	 */
-	irq = orion5x_pci_map_irq(const dev, slot, pin);
+	irq = orion5x_pci_map_irq(dev, slot, pin);
 	if (irq != -1)
 		return irq;
 
Signature · 1 line
1.7.6
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Paul Gortmaker

Upstream commit d5341942d784134f2997b3ff82cd63cf71d1f932 "PCI: Make the struct pci_dev * argument of pci_fixup_irqs const." leaked an extra "const" into an actual call site (vs a proto/decl) which causes this:

arch/arm/mach-orion5x/dns323-setup.c: In function 'dns323_pci_map_irq':
arch/arm/mach-orion5x/dns323-setup.c:80: error: expected expression before 'const' arch/arm/mach-orion5x/dns323-setup.c:80: error: too few arguments to function 'orion5x_pci_map_irq' make[3]: *** [arch/arm/mach-orion5x/dns323-setup.o] Error 1

Quoted 22 lines
arch/arm/mach-orion5x/dns323-setup.c +1 -1
index a6eddae..c105556 100644
@@ -77,7 +77,7 @@ static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 	/*
 	 * Check for devices with hard-wired IRQs.
 	 */
-	irq = orion5x_pci_map_irq(const dev, slot, pin);
+	irq = orion5x_pci_map_irq(dev, slot, pin);
 	if (irq != -1)
 		return irq;
 
Signature · 7 lines
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Acked-by on v1 1/1
#2 lore raw
In reply to Paul Gortmaker

arch/arm/mach-orion5x/dns323-setup.c static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) · line 80

Quoted 9 lines · Paul Gortmaker

index a6eddae..c105556 100644

arch/arm/mach-orion5x/dns323-setup.c +1 -1
@@ -77,7 +77,7 @@ static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 	/*
 	 * Check for devices with hard-wired IRQs.
 	 */
-	irq = orion5x_pci_map_irq(const dev, slot, pin);
+	irq = orion5x_pci_map_irq(dev, slot, pin);

Very obviously correct ...

Ralf

#3 lore raw

Rob,

I guess you can add your Ack to Paul's patch here.

Arnd, could you please add this patch into your tree, as it's a obvious right fixing.

Thanks,
-Bryan

Quoted 23 lines · Ralf Baechle
Quoted 9 lines · Paul Gortmaker

index a6eddae..c105556 100644

arch/arm/mach-orion5x/dns323-setup.c +0 -0
@@ -77,7 +77,7 @@ static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)

? ? ? /*
? ? ? ?* Check for devices with hard-wired IRQs. ? ? ? ?*/
- ? ? irq = orion5x_pci_map_irq(const dev, slot, pin);
+ ? ? irq = orion5x_pci_map_irq(dev, slot, pin);

Very obviously correct ...

?Ralf

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel