* [PATCH 2/2] arm/pxa: Let zeus.c link without CONFIG_PM enabled.
@ 2010-02-16 21:42 Stefan Schmidt
2010-02-16 22:12 ` Marc Zyngier
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Schmidt @ 2010-02-16 21:42 UTC (permalink / raw)
To: linux-arm-kernel
Add some safety check for CONFIG_PM around zeus_power_off(). Without it linking
can fail like this:
arch/arm/mach-pxa/built-in.o: In function `zeus_power_off':
e800.c:(.text+0x2bc8): undefined reference to `pxa27x_cpu_suspend'
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
--
This smells a bit fishy as zeus_power_off() is only mapped to pm_power_off and
that one seems to come and go to nowhere. Is this any magic I don't get on a
first glance?
---
arch/arm/mach-pxa/zeus.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c
index 75f2a37..213279d 100644
--- a/arch/arm/mach-pxa/zeus.c
+++ b/arch/arm/mach-pxa/zeus.c
@@ -621,11 +621,15 @@ static struct pxa2xx_udc_mach_info zeus_udc_info = {
.udc_command = zeus_udc_command,
};
+#ifdef CONFIG_PM
static void zeus_power_off(void)
{
local_irq_disable();
pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP);
}
+#else
+#define zeus_power_off NULL
+#endif
#ifdef CONFIG_APM_EMULATION
static void zeus_get_power_status(struct apm_power_info *info)
--
1.6.6.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm/pxa: Let zeus.c link without CONFIG_PM enabled.
2010-02-16 21:42 [PATCH 2/2] arm/pxa: Let zeus.c link without CONFIG_PM enabled Stefan Schmidt
@ 2010-02-16 22:12 ` Marc Zyngier
2010-02-17 7:23 ` Stefan Schmidt
2010-02-18 6:46 ` Eric Miao
0 siblings, 2 replies; 4+ messages in thread
From: Marc Zyngier @ 2010-02-16 22:12 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, 16 Feb 2010 22:42:55 +0100
Stefan Schmidt <stefan@datenfreihafen.org> wrote:
> Add some safety check for CONFIG_PM around zeus_power_off(). Without it linking
> can fail like this:
>
> arch/arm/mach-pxa/built-in.o: In function `zeus_power_off':
> e800.c:(.text+0x2bc8): undefined reference to `pxa27x_cpu_suspend'
>
> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
>
> --
>
> This smells a bit fishy as zeus_power_off() is only mapped to pm_power_off and
> that one seems to come and go to nowhere. Is this any magic I don't get on a
> first glance?
The magic takes place in arch/arm/kernel/process.c.
> ---
> arch/arm/mach-pxa/zeus.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c
> index 75f2a37..213279d 100644
> --- a/arch/arm/mach-pxa/zeus.c
> +++ b/arch/arm/mach-pxa/zeus.c
> @@ -621,11 +621,15 @@ static struct pxa2xx_udc_mach_info zeus_udc_info = {
> .udc_command = zeus_udc_command,
> };
>
> +#ifdef CONFIG_PM
> static void zeus_power_off(void)
> {
> local_irq_disable();
> pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP);
> }
> +#else
> +#define zeus_power_off NULL
> +#endif
>
> #ifdef CONFIG_APM_EMULATION
> static void zeus_get_power_status(struct apm_power_info *info)
Acked-by: Marc Zyngier <maz@misterjones.org>
Eric, are you willing to take this directly, or do you want me to queue
it for the next merge window with the rest of the fixes?
M.
--
I'm the slime oozin' out from your TV set...
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm/pxa: Let zeus.c link without CONFIG_PM enabled.
2010-02-16 22:12 ` Marc Zyngier
@ 2010-02-17 7:23 ` Stefan Schmidt
2010-02-18 6:46 ` Eric Miao
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Schmidt @ 2010-02-17 7:23 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On Tue, 2010-02-16 at 22:12, Marc Zyngier wrote:
> On Tue, 16 Feb 2010 22:42:55 +0100
> Stefan Schmidt <stefan@datenfreihafen.org> wrote:
>
> > Add some safety check for CONFIG_PM around zeus_power_off(). Without it linking
> > can fail like this:
> >
> > arch/arm/mach-pxa/built-in.o: In function `zeus_power_off':
> > e800.c:(.text+0x2bc8): undefined reference to `pxa27x_cpu_suspend'
> >
> > Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
> >
> > --
> >
> > This smells a bit fishy as zeus_power_off() is only mapped to pm_power_off and
> > that one seems to come and go to nowhere. Is this any magic I don't get on a
> > first glance?
>
> The magic takes place in arch/arm/kernel/process.c.
Ah, thanks a lot. Something learned today. :)
regards
Stefan Schmidt
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm/pxa: Let zeus.c link without CONFIG_PM enabled.
2010-02-16 22:12 ` Marc Zyngier
2010-02-17 7:23 ` Stefan Schmidt
@ 2010-02-18 6:46 ` Eric Miao
1 sibling, 0 replies; 4+ messages in thread
From: Eric Miao @ 2010-02-18 6:46 UTC (permalink / raw)
To: linux-arm-kernel
> Acked-by: Marc Zyngier <maz@misterjones.org>
>
> Eric, are you willing to take this directly, or do you want me to queue
> it for the next merge window with the rest of the fixes?
>
With your Ack, I've applied this to 'devel'. The zeus can still be
built with CONFIG_PM enabled, so I tend to include this for the
next merge window instead of going into the -rc phase.
And note this doesn't look like a final fix to this issue, so you
may want to work a bit on it some time later.
Please submit the rest of the fixes as we are close to the merge
window. And thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-18 6:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 21:42 [PATCH 2/2] arm/pxa: Let zeus.c link without CONFIG_PM enabled Stefan Schmidt
2010-02-16 22:12 ` Marc Zyngier
2010-02-17 7:23 ` Stefan Schmidt
2010-02-18 6:46 ` Eric Miao
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).