]> git.baikalelectronics.ru Git - kernel.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)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 10 Jun 2022 09:28:16 +0000 (11:28 +0200)
commit122c9a19f0510b2a0d7b055a45fdbd0b1c3cea9b
tree5a584232dd7b7c037cb3d05a464519c57499766f
parent9bbef53c7e61c593afd352549443e588bf3c0400
random: mark bootloader randomness code as __init

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>
drivers/char/random.c
include/linux/random.h