]> 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)
commit64a457cb557e2626770fbb6db665af73d1d01b2e
tree5a584232dd7b7c037cb3d05a464519c57499766f
parent095b58dfcdc92922991c267bd7bb9489aba9c269
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: ae6988528d6c ("fdt: add support for rng-seed")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
include/linux/random.h