From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.ferre@atmel.com (Nicolas Ferre) Date: Mon, 2 Dec 2013 12:08:19 +0100 Subject: [PATCH] fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM In-Reply-To: References: Message-ID: <529C6A23.1040900@atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > --- > 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 > #include > > +#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