diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-02-13 18:17:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-30 10:33:36 +0300 |
commit | 6e1cb84cc6a09ae7bb471fa88f1815450e6fcadf (patch) | |
tree | 5e13f29aeca6a6f5e0caa4384e231f38461c2364 /include/linux/i8042.h | |
parent | 32252548b50fca325d8964b945dbb787934ab861 (diff) | |
download | linux-6e1cb84cc6a09ae7bb471fa88f1815450e6fcadf.tar.xz |
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>
Diffstat (limited to 'include/linux/i8042.h')
0 files changed, 0 insertions, 0 deletions