diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-07 17:00:16 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-10 11:28:16 +0200 |
commit | 39e0f991a62ed5efabd20711a7b6e7da92603170 (patch) | |
tree | 5a584232dd7b7c037cb3d05a464519c57499766f /include | |
parent | random: avoid checking crng_ready() twice in random_init() (diff) | |
download | linux-39e0f991a62ed5efabd20711a7b6e7da92603170.tar.xz linux-39e0f991a62ed5efabd20711a7b6e7da92603170.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/random.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/random.h b/include/linux/random.h index fae0c84027fd..223b4bd584e7 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -13,7 +13,7 @@ struct notifier_block; void add_device_randomness(const void *buf, size_t len); -void add_bootloader_randomness(const void *buf, size_t len); +void __init add_bootloader_randomness(const void *buf, size_t len); void add_input_randomness(unsigned int type, unsigned int code, unsigned int value) __latent_entropy; void add_interrupt_randomness(int irq) __latent_entropy; |