]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit39e0f991a62ed5efabd20711a7b6e7da92603170
tree5a584232dd7b7c037cb3d05a464519c57499766f
parent9b29b6b20376ab64e1b043df6301d8a92378e631
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: 428826f5358c ("fdt: add support for rng-seed")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c
include/linux/random.h