random: inline leaves of rand_initialize()
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 8 Feb 2022 11:40:14 +0000 (12:40 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 13 Feb 2022 23:46:08 +0000 (00:46 +0100)
commit4823f059d0ac2642b6df8941542b29ad97c208d6
tree25be2b32218232fc07ac56aeeddb8330691db9c7
parent9b9a0c25a8d13d7794bc50fc7f4a6804b2a354b9
random: inline leaves of rand_initialize()

This is a preparatory commit for the following one. We simply inline the
various functions that rand_initialize() calls that have no other
callers. The compiler was doing this anyway before. Doing this will
allow us to reorganize this after. We can then move the trust_cpu and
parse_trust_cpu definitions a bit closer to where they're actually used,
which makes the code easier to read.

Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c