[PATCH] ARM: imx: mark imx53_suspend_sz as unused
Shawn Guo
shawnguo2 at yeah.net
Mon Mar 10 19:58:12 PDT 2025
On Tue, Feb 25, 2025 at 09:11:52PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
>
> Unused 'static const' variables cause a warning when building with
> W=1, and imx53_suspend_sz has a definition for this as an
> alternative when CONFIG_SUSPEND is disabled:
>
> In file included from arch/arm/mach-imx/cpu.c:9:
> arch/arm/mach-imx/common.h:101:18: error: 'imx53_suspend_sz' defined but not used [-Werror=unused-const-variable=]
>
> It's still referenced though, so mark it as __maybe_unused, so
> the one user can address the dummy copy and other files that include
> the header don't produce a warning.
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Applied, thanks!
More information about the linux-arm-kernel
mailing list