android_kernel_xiaomi_sm7250/drivers/char/hw_random
Jason A. Donenfeld 5a5ca92906 random: pull add_hwgenerator_randomness() declaration into random.h
commit b777c38239fec5a528e59f55b379e31b1a187524 upstream.

add_hwgenerator_randomness() is a function implemented and documented
inside of random.c. It is the way that hardware RNGs push data into it.
Therefore, it should be declared in random.h. Otherwise sparse complains
with:

random.c:1137:6: warning: symbol 'add_hwgenerator_randomness' was not declared. Should it be static?

The alternative would be to include hw_random.h into random.c, but that
wouldn't really be good for anything except slowing down compile time.

Cc: Matt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-25 11:49:07 +02:00
..
amd-rng.c
atmel-rng.c hwrng: atmel - disable trng on failure path 2022-04-15 14:14:43 +02:00
bcm2835-rng.c hwrng: bcm2835 - fix probe as platform device 2020-01-27 14:50:29 +01:00
cavium-rng-vf.c
cavium-rng.c
core.c random: pull add_hwgenerator_randomness() declaration into random.h 2022-06-25 11:49:07 +02:00
exynos-trng.c
geode-rng.c
hisi-rng.c
imx-rngc.c hwrng: imx-rngc - fix an error path 2020-04-13 10:45:10 +02:00
intel-rng.c
iproc-rng200.c
ixp4xx-rng.c
Kconfig
ks-sa-rng.c hwrng: ks-sa - Fix runtime PM imbalance on error 2020-06-30 23:17:14 -04:00
Makefile
meson-rng.c
mtk-rng.c hwrng: mtk - Force runtime pm ops for sleep ops 2021-11-26 11:36:09 +01:00
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c
omap3-rom-rng.c hwrng: omap3-rom - Fix missing clock by probing with device tree 2020-01-27 14:51:20 +01:00
omap-rng.c
pasemi-rng.c
pic32-rng.c
powernv-rng.c
pseries-rng.c
s390-trng.c
st-rng.c
stm32-rng.c
timeriomem-rng.c hwrng: timeriomem - Fix cooldown period calculation 2021-03-04 09:39:41 +01:00
tx4939-rng.c
via-rng.c
virtio-rng.c
xgene-rng.c