random: mark bootloader randomness code as __init
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 13 Jun 2022 08:07:48 +0000 (10:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:27 +0000 (18:36 +0200)
commite59a120f2d435ee2cfa47035be903cc2d8cc6731
treea0cad0750094576130cd822d466a46a0e38ac8c2
parentce49b94ddb70e607c476a12d26002715d694b23a
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