* [PATCH] fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM
@ 2013-11-24 18:02 Brent Taylor
2013-12-02 11:08 ` Nicolas Ferre
0 siblings, 1 reply; 3+ messages in thread
From: Brent Taylor @ 2013-11-24 18:02 UTC (permalink / raw)
To: linux-arm-kernel
If CONFIG_PM is not defined, then arch/arm/mach-at91/pm.c is not
compiled in. This patch creates an inline function that does nothing
if CONFIG_PM is not defined.
---
arch/arm/mach-at91/pm.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/mach-at91/pm.h b/arch/arm/mach-at91/pm.h
index 3ed190c..c5101dc 100644
--- a/arch/arm/mach-at91/pm.h
+++ b/arch/arm/mach-at91/pm.h
@@ -16,7 +16,11 @@
#include <mach/at91_ramc.h>
#include <mach/at91rm9200_sdramc.h>
+#ifdef CONFIG_PM
extern void at91_pm_set_standby(void (*at91_standby)(void));
+#else
+static inline void at91_pm_set_standby(void (*at91_standby)(void)) { }
+#endif
/*
* The AT91RM9200 goes into self-refresh mode with this command, and will
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM
2013-11-24 18:02 [PATCH] fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM Brent Taylor
@ 2013-12-02 11:08 ` Nicolas Ferre
[not found] ` <CAP+RiCBHRiQ+exZ1iqVawDOb3teQVZkb8C7WmtXPJVN_O_GaBA@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Ferre @ 2013-12-02 11:08 UTC (permalink / raw)
To: linux-arm-kernel
On 24/11/2013 19:02, Brent Taylor :
> If CONFIG_PM is not defined, then arch/arm/mach-at91/pm.c is not
> compiled in. This patch creates an inline function that does nothing
> if CONFIG_PM is not defined.
Your "Signed-off-by" line is missing. Can you please quickly send it to
me (by just replying to this email)?
Otherwise, seems reasonable:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> arch/arm/mach-at91/pm.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-at91/pm.h b/arch/arm/mach-at91/pm.h
> index 3ed190c..c5101dc 100644
> --- a/arch/arm/mach-at91/pm.h
> +++ b/arch/arm/mach-at91/pm.h
> @@ -16,7 +16,11 @@
> #include <mach/at91_ramc.h>
> #include <mach/at91rm9200_sdramc.h>
>
> +#ifdef CONFIG_PM
> extern void at91_pm_set_standby(void (*at91_standby)(void));
> +#else
> +static inline void at91_pm_set_standby(void (*at91_standby)(void)) { }
> +#endif
>
> /*
> * The AT91RM9200 goes into self-refresh mode with this command, and will
> --
> 1.8.3.2
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM
[not found] ` <CAP+RiCBHRiQ+exZ1iqVawDOb3teQVZkb8C7WmtXPJVN_O_GaBA@mail.gmail.com>
@ 2013-12-02 13:25 ` Nicolas Ferre
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2013-12-02 13:25 UTC (permalink / raw)
To: linux-arm-kernel
On 02/12/2013 14:12, Brent Taylor :
> Signed-off-by: Brent Taylor <motobud@gmail.com>
Thanks. it is now queued in at91-3.13-fixes.
Best regards,
> On Mon, Dec 2, 2013 at 5:08 AM, Nicolas Ferre <nicolas.ferre@atmel.com> wrote:
>> On 24/11/2013 19:02, Brent Taylor :
>>>
>>> If CONFIG_PM is not defined, then arch/arm/mach-at91/pm.c is not
>>> compiled in. This patch creates an inline function that does nothing
>>> if CONFIG_PM is not defined.
>>
>>
>> Your "Signed-off-by" line is missing. Can you please quickly send it to me
>> (by just replying to this email)?
>>
>> Otherwise, seems reasonable:
>>
>> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
>>
>>> ---
>>> arch/arm/mach-at91/pm.h | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/arch/arm/mach-at91/pm.h b/arch/arm/mach-at91/pm.h
>>> index 3ed190c..c5101dc 100644
>>> --- a/arch/arm/mach-at91/pm.h
>>> +++ b/arch/arm/mach-at91/pm.h
>>> @@ -16,7 +16,11 @@
>>> #include <mach/at91_ramc.h>
>>> #include <mach/at91rm9200_sdramc.h>
>>>
>>> +#ifdef CONFIG_PM
>>> extern void at91_pm_set_standby(void (*at91_standby)(void));
>>> +#else
>>> +static inline void at91_pm_set_standby(void (*at91_standby)(void)) { }
>>> +#endif
>>>
>>> /*
>>> * The AT91RM9200 goes into self-refresh mode with this command, and
>>> will
>>> --
>>> 1.8.3.2
>>>
>>> _______________________________________________
>>> linux-arm-kernel mailing list
>>> linux-arm-kernel at lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>>>
>>
>>
>> --
>> Nicolas Ferre
>
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-02 13:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-24 18:02 [PATCH] fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM Brent Taylor
2013-12-02 11:08 ` Nicolas Ferre
[not found] ` <CAP+RiCBHRiQ+exZ1iqVawDOb3teQVZkb8C7WmtXPJVN_O_GaBA@mail.gmail.com>
2013-12-02 13:25 ` Nicolas Ferre
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.