]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit198ecadf584e956cae4c00559664bb7d35f09235
treea0cad0750094576130cd822d466a46a0e38ac8c2
parenteb8f141a1fa762a08d25885636b2f8e9e05f7381
random: mark bootloader randomness code as __init

commit 122c9a19f0510b2a0d7b055a45fdbd0b1c3cea9b 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: 69788ded7904 ("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