android_kernel_oneplus_msm8998/drivers/char/hw_random
Arnd Bergmann 2d69b722e4 hwrng: exynos - use __maybe_unused to hide pm functions
commit b93f342da1766ef1740e6277508329356c4ea48b upstream.

The exynos random driver uses #ifdef to check for CONFIG_PM, but
then uses SIMPLE_DEV_PM_OPS, which leaves the references out when
CONFIG_PM_SLEEP is not defined, so we get a warning with
PM=y && PM_SLEEP=n:

drivers/char/hw_random/exynos-rng.c:166:12: error: 'exynos_rng_suspend' defined but not used [-Werror=unused-function]
drivers/char/hw_random/exynos-rng.c:171:12: error: 'exynos_rng_resume' defined but not used [-Werror=unused-function]

This removes the incorrect #ifdef and instead uses a __maybe_unused
annotation to let the compiler know it can silently drop
the function definition.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:47 +01:00
..
amd-rng.c
atmel-rng.c
bcm63xx-rng.c hwrng: bcm63xx - Fix driver compilation 2015-05-04 17:49:52 +08:00
bcm2835-rng.c
core.c hwrng: core - sleep interruptible in read 2018-01-17 09:35:28 +01:00
exynos-rng.c hwrng: exynos - use __maybe_unused to hide pm functions 2018-02-25 11:03:47 +01:00
geode-rng.c
intel-rng.c
iproc-rng200.c hwrng: iproc-rng200 - make use of devm_hwrng_register 2015-03-16 21:45:56 +11:00
ixp4xx-rng.c
Kconfig hwrng: stm32 - add support for STM32 HW RNG 2015-10-14 22:23:36 +08:00
Makefile hwrng: stm32 - add support for STM32 HW RNG 2015-10-14 22:23:36 +08:00
msm-rng.c hwrng: msm - make use of devm_hwrng_register 2015-03-16 21:45:55 +11:00
mxc-rnga.c hwrng: mxc-rnga - Use the preferred format for kzalloc 2015-09-21 22:00:39 +08:00
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c hwrng: octeon - Use devm_hwrng_register 2015-09-21 22:00:38 +08:00
omap-rng.c hwrng: omap - Only fail if pm_runtime_get_sync returns < 0 2016-10-31 04:14:00 -06:00
omap3-rom-rng.c
pasemi-rng.c hwrng: Fix module autoload for OF platform drivers 2015-09-21 22:00:39 +08:00
powernv-rng.c char: constify of_device_id array 2015-03-16 21:10:28 +01:00
ppc4xx-rng.c hwrng: Fix module autoload for OF platform drivers 2015-09-21 22:00:39 +08:00
pseries-rng.c hwrng: pseries - remove incorrect __init/__exit markups 2015-03-12 01:11:06 +11:00
st-rng.c hwrng: st - Improve FIFO size/depth description 2015-10-08 21:42:25 +08:00
stm32-rng.c hwrng: stm32 - Fix build with CONFIG_PM 2015-10-15 09:50:39 +08:00
timeriomem-rng.c
tpm-rng.c
tx4939-rng.c
via-rng.c x86/fpu: Rename i387.h to fpu/api.h 2015-05-19 15:47:30 +02:00
virtio-rng.c hwrng: virtio - drop extra empty line 2015-01-26 11:34:23 +11:00
xgene-rng.c hwrng: xgene - fix handling platform_get_irq 2015-09-21 22:57:37 +08:00