]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
random: mark bootloader randomness code as __init
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 7 Jun 2022 15:00:16 +0000 (17:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:45:16 +0000 (11:45 +0200)
commit855aac499edbdba5feceadbcd511e4479795d491
tree9e4481d88f67a8e4c2c69350b86584897b3e9f27
parentdc1485143685c387cca6425bef8454570018daeb
random: mark bootloader randomness code as __init

commit 39e0f991a62ed5efabd20711a7b6e7da92603170 upstream.

add_bootloader_randomness() and the variables it touches are only used
during __init and not after, so mark these as __init. At the same time,
unexport this, since it's only called by other __init code that's
built-in.

Cc: stable@vger.kernel.org
Fixes: 428826f5358c ("fdt: add support for rng-seed")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c
include/linux/random.h