[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200421032116.GD8571@dragon>
Date: Tue, 21 Apr 2020 11:21:17 +0800
From: Shawn Guo <shawnguo@...nel.org>
To: Ahmad Fatoum <a.fatoum@...gutronix.de>
Cc: Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Lucas Stach <l.stach@...gutronix.de>,
Rouven Czerwinski <r.czerwinski@...gutronix.de>,
stable@...r.kernel.org,
Clemens Gruber <clemens.gruber@...ruber.com>,
Russell King <linux@...linux.org.uk>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ARM: imx: provide v7_cpu_resume() only on
ARM_CPU_SUSPEND=y
On Mon, Mar 23, 2020 at 09:19:33AM +0100, Ahmad Fatoum wrote:
> 512a928affd5 ("ARM: imx: build v7_cpu_resume() unconditionally")
> introduced an unintended linker error for i.MX6 configurations that have
> ARM_CPU_SUSPEND=n which can happen if neither CONFIG_PM, CONFIG_CPU_IDLE,
> nor ARM_PSCI_FW are selected.
>
> Fix this by having v7_cpu_resume() compiled only when cpu_resume() it
> calls is available as well.
>
> The C declaration for the function remains unguarded to avoid future code
> inadvertently using a stub and introducing a regression to the bug the
> original commit fixed.
>
> Cc: <stable@...r.kernel.org>
> Fixes: 512a928affd5 ("ARM: imx: build v7_cpu_resume() unconditionally")
> Reported-by: Clemens Gruber <clemens.gruber@...ruber.com>
> Signed-off-by: Ahmad Fatoum <a.fatoum@...gutronix.de>
Applied, thanks.
Powered by blists - more mailing lists