* Re: [PATCH] Fix gcc warning in arch/mips/pci/pci.c
2007-07-12 16:16 [PATCH] Fix gcc warning in arch/mips/pci/pci.c Atsushi Nemoto
@ 2007-07-12 16:05 ` Ralf Baechle
2007-07-12 16:29 ` Atsushi Nemoto
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2007-07-12 16:05 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
On Fri, Jul 13, 2007 at 01:16:25AM +0900, Atsushi Nemoto wrote:
> Now pcibios_map_irq() takes a const pointer. Cast it to adapt
> pci_fixup_irqs().
I got a patch here to change pci_fixup_irqs to expect a const * as the
second argument but that still needs a little testing on other
architectures.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] Fix gcc warning in arch/mips/pci/pci.c
@ 2007-07-12 16:16 Atsushi Nemoto
2007-07-12 16:05 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Atsushi Nemoto @ 2007-07-12 16:16 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
Now pcibios_map_irq() takes a const pointer. Cast it to adapt
pci_fixup_irqs().
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 67e01fd..ecfb144 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -160,7 +160,8 @@ static int __init pcibios_init(void)
if (!pci_probe_only)
pci_assign_unassigned_resources();
- pci_fixup_irqs(common_swizzle, pcibios_map_irq);
+ pci_fixup_irqs(common_swizzle,
+ (int (*)(struct pci_dev *, u8, u8))pcibios_map_irq);
if ((dev = pci_get_class(PCI_CLASS_BRIDGE_EISA << 8, NULL)) != NULL ||
(dev = pci_get_class(PCI_CLASS_BRIDGE_ISA << 8, NULL)) != NULL) {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix gcc warning in arch/mips/pci/pci.c
2007-07-12 16:05 ` Ralf Baechle
@ 2007-07-12 16:29 ` Atsushi Nemoto
0 siblings, 0 replies; 3+ messages in thread
From: Atsushi Nemoto @ 2007-07-12 16:29 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
On Thu, 12 Jul 2007 17:05:11 +0100, Ralf Baechle <ralf@linux-mips.org> wrote:
> > Now pcibios_map_irq() takes a const pointer. Cast it to adapt
> > pci_fixup_irqs().
>
> I got a patch here to change pci_fixup_irqs to expect a const * as the
> second argument but that still needs a little testing on other
> architectures.
Oh that would be nice. Then please drop this.
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-12 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 16:16 [PATCH] Fix gcc warning in arch/mips/pci/pci.c Atsushi Nemoto
2007-07-12 16:05 ` Ralf Baechle
2007-07-12 16:29 ` Atsushi Nemoto
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.