Skip to content

Commit 4f8ec94

Browse files
arndbShawn Guo
authored andcommitted
ARM: imx: mark imx53_suspend_sz as unused
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@arndb.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 2014c95 commit 4f8ec94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm/mach-imx/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ extern const u32 imx53_suspend_sz;
9898
void imx6_suspend(void __iomem *ocram_vbase);
9999
#else
100100
static inline void imx53_suspend(void __iomem *ocram_vbase) {}
101-
static const u32 imx53_suspend_sz;
101+
static __maybe_unused const u32 imx53_suspend_sz;
102102
static inline void imx6_suspend(void __iomem *ocram_vbase) {}
103103
#endif
104104

0 commit comments

Comments
 (0)