* Re: 2.6.19-rc5-mm1 -- ppc64 ohci-hdc.c compile failure
[not found] <20061108015452.a2bb40d2.akpm@osdl.org>
@ 2006-11-09 15:04 ` Andy Whitcroft
2006-11-09 22:43 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 4+ messages in thread
From: Andy Whitcroft @ 2006-11-09 15:04 UTC (permalink / raw)
To: Andrew Morton, Nicolas DET
Cc: Steve Fox, linuxppc-dev, Paul Mackerras, linux-kernel
We are seeing compile failures on ppc64 in ohci-hcd.c as below:
In file included from drivers/usb/host/ohci-hcd.c:949:
drivers/usb/host/ohci-ppc-of.c: In function `ohci_hcd_ppc_of_init':
drivers/usb/host/ohci-ppc-of.c:272: warning: int format, different type
arg (arg 2)
drivers/usb/host/ohci-ppc-of.c:272: warning: int format, different type
arg (arg 3)
drivers/usb/host/ohci-ppc-of.c: At top level:
drivers/usb/host/ohci-ppc-of.c:282: error: redefinition of `__inittest'
drivers/usb/host/ohci-pci.c:252: error: `__inittest' previously defined here
drivers/usb/host/ohci-ppc-of.c:282: error: redefinition of `init_module'
drivers/usb/host/ohci-pci.c:252: error: `init_module' previously defined
here
drivers/usb/host/ohci-ppc-of.c:283: error: redefinition of `__exittest'
drivers/usb/host/ohci-pci.c:260: error: `__exittest' previously defined here
drivers/usb/host/ohci-ppc-of.c:283: error: redefinition of `cleanup_module'
drivers/usb/host/ohci-pci.c:260: error: `cleanup_module' previously
defined here
Seems that the patch below has introduced USB_OHCI_HCD_PPC_OF enabled by
default. When it and CONFIG_USB_OHCI_HCD_PPC_SOC are enabled which
occured by default on my config then we end up with two module_init()
calls, which is illegal.
powerpc-add-of_platform-support-for-ohci-bigendian-hc
I am guessing that we are only meant to be able to have one of these
defined at a time? I changed the default to n for this and I could at
least compile the kernel, but I am sure thats not the right fix.
Nicolas?
-apw
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.19-rc5-mm1 -- ppc64 ohci-hdc.c compile failure
2006-11-09 15:04 ` 2.6.19-rc5-mm1 -- ppc64 ohci-hdc.c compile failure Andy Whitcroft
@ 2006-11-09 22:43 ` Benjamin Herrenschmidt
2006-11-10 9:49 ` Paul Mackerras
0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2006-11-09 22:43 UTC (permalink / raw)
To: Andy Whitcroft
Cc: Andrew Morton, Steve Fox, linux-kernel, linuxppc-dev,
Paul Mackerras
> Seems that the patch below has introduced USB_OHCI_HCD_PPC_OF enabled by
> default. When it and CONFIG_USB_OHCI_HCD_PPC_SOC are enabled which
> occured by default on my config then we end up with two module_init()
> calls, which is illegal.
>
> powerpc-add-of_platform-support-for-ohci-bigendian-hc
>
> I am guessing that we are only meant to be able to have one of these
> defined at a time? I changed the default to n for this and I could at
> least compile the kernel, but I am sure thats not the right fix.
Paul, which patch did you merge ? I rejected the initial one that was
doing 2 drivers/probe routines and Nicolas did a new one.. You may have
taken the wrong one.
Cheers.
Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.19-rc5-mm1 -- ppc64 ohci-hdc.c compile failure
2006-11-09 22:43 ` Benjamin Herrenschmidt
@ 2006-11-10 9:49 ` Paul Mackerras
2006-11-10 9:58 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2006-11-10 9:49 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Andrew Morton, Steve Fox, linux-kernel, linuxppc-dev
Benjamin Herrenschmidt writes:
> > Seems that the patch below has introduced USB_OHCI_HCD_PPC_OF enabled by
> > default. When it and CONFIG_USB_OHCI_HCD_PPC_SOC are enabled which
> > occured by default on my config then we end up with two module_init()
> > calls, which is illegal.
> >
> > powerpc-add-of_platform-support-for-ohci-bigendian-hc
> >
> > I am guessing that we are only meant to be able to have one of these
> > defined at a time? I changed the default to n for this and I could at
> > least compile the kernel, but I am sure thats not the right fix.
>
> Paul, which patch did you merge ? I rejected the initial one that was
> doing 2 drivers/probe routines and Nicolas did a new one.. You may have
> taken the wrong one.
I didn't merge either of them.
Paul.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.19-rc5-mm1 -- ppc64 ohci-hdc.c compile failure
2006-11-10 9:49 ` Paul Mackerras
@ 2006-11-10 9:58 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2006-11-10 9:58 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Andrew Morton, Steve Fox, linux-kernel, linuxppc-dev
On Fri, 2006-11-10 at 20:49 +1100, Paul Mackerras wrote:
> Benjamin Herrenschmidt writes:
>
> > > Seems that the patch below has introduced USB_OHCI_HCD_PPC_OF enabled by
> > > default. When it and CONFIG_USB_OHCI_HCD_PPC_SOC are enabled which
> > > occured by default on my config then we end up with two module_init()
> > > calls, which is illegal.
> > >
> > > powerpc-add-of_platform-support-for-ohci-bigendian-hc
> > >
> > > I am guessing that we are only meant to be able to have one of these
> > > defined at a time? I changed the default to n for this and I could at
> > > least compile the kernel, but I am sure thats not the right fix.
> >
> > Paul, which patch did you merge ? I rejected the initial one that was
> > doing 2 drivers/probe routines and Nicolas did a new one.. You may have
> > taken the wrong one.
>
> I didn't merge either of them.
Ah, must be Andrew then. Andrew, can you drop this (along with the other
Efika/MPC5200) patches from -mm ? They'll get in via the powerpc merge
and I'll make sure Paulus gets the right versions.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-10 9:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20061108015452.a2bb40d2.akpm@osdl.org>
2006-11-09 15:04 ` 2.6.19-rc5-mm1 -- ppc64 ohci-hdc.c compile failure Andy Whitcroft
2006-11-09 22:43 ` Benjamin Herrenschmidt
2006-11-10 9:49 ` Paul Mackerras
2006-11-10 9:58 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).