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>
Mon, 21 Feb 2022 15:48:06 +0000 (16:48 +0100)
commit8566417221fcec51346ec164e920dacb979c6b5f
tree1b1a7dbd48e6983539dbddaac262e51c9f1dce36
parenta9412d510ab9a9ba411fea612903631d2e1f1601
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