diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-03-01 20:03:49 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-03-13 02:00:56 +0100 |
commit | 5acd35487dc911541672b3ffc322851769c32a56 (patch) | |
tree | ea7d9e993383b44e483fcd44fc85df78222f8af8 /Kbuild | |
parent | random: do not export add_vmfork_randomness() unless needed (diff) | |
download | linux-5acd35487dc911541672b3ffc322851769c32a56.tar.xz linux-5acd35487dc911541672b3ffc322851769c32a56.zip |
random: replace custom notifier chain with standard one
We previously rolled our own randomness readiness notifier, which only
has two users in the whole kernel. Replace this with a more standard
atomic notifier block that serves the same purpose with less code. Also
unexport the symbols, because no modules use it, only unconditional
builtins. The only drawback is that it's possible for a notification
handler returning the "stop" code to prevent further processing, but
given that there are only two users, and that we're unexporting this
anyway, that doesn't seem like a significant drawback for the
simplification we receive here.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions