]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: omap2: mark unused functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Jan 2016 15:57:33 +0000 (16:57 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2017 20:57:48 +0000 (22:57 +0200)
commit75368bc6e3dd13ed018ad58452ddb8398f3ee1a2
treea60f0310cc259ba14a10e8dbf516f9b1cd0bf294
parent08b8632cbbe4b621e7e4a15e8fa0de4ac280b934
ARM: omap2: mark unused functions as __maybe_unused

The omap_generic_init() and omap_hwmod_init_postsetup() functions are
used in the initialization for all OMAP2+ SoC types, but in the
extreme case that those are all disabled, we get a warning about
unused code:

arch/arm/mach-omap2/io.c:412:123: error: 'omap_hwmod_init_postsetup' defined but not used [-Werror=unused-function]
arch/arm/mach-omap2/board-generic.c:30:123: error: 'omap_generic_init' defined but not used [-Werror=unused-function]

This annotates both as __maybe_unused to shut up that warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
arch/arm/mach-omap2/board-generic.c
arch/arm/mach-omap2/io.c