]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: omap3-rom - Fix unused function warnings
authorArnd Bergmann <arnd@arndb.de>
Tue, 22 Oct 2019 14:27:31 +0000 (16:27 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Nov 2019 05:33:42 +0000 (13:33 +0800)
commit353a91b1c0a4a6b3d86536eac004bad043045944
tree391ff28108d9bf8eed329edbb813de2ded5e0b1c
parent3f0e00f8e22f51e29c2b3c1eb7dfdc4178efbe31
hwrng: omap3-rom - Fix unused function warnings

When runtime-pm is disabled, we get a few harmless warnings:

drivers/char/hw_random/omap3-rom-rng.c:65:12: error: unused function 'omap_rom_rng_runtime_suspend' [-Werror,-Wunused-function]
drivers/char/hw_random/omap3-rom-rng.c:81:12: error: unused function 'omap_rom_rng_runtime_resume' [-Werror,-Wunused-function]

Mark these functions as __maybe_unused so gcc can drop them
silently.

Fixes: b8b0d91cbd20 ("hwrng: omap3-rom - Use runtime PM instead of custom functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/omap3-rom-rng.c