diff options
| author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-07 17:00:16 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-25 11:46:42 +0200 |
| commit | 5e70c1a8eea10963080c61c3a973f525274eeb31 (patch) | |
| tree | b2147419d951c81e167a870ed0c0e260dc1a80d2 /include | |
| parent | aafc845f74e40f7c8f4ade6424c413b71f320f89 (diff) | |
| download | linux-5e70c1a8eea10963080c61c3a973f525274eeb31.tar.gz linux-5e70c1a8eea10963080c61c3a973f525274eeb31.tar.bz2 linux-5e70c1a8eea10963080c61c3a973f525274eeb31.zip | |
random: mark bootloader randomness code as __init
commit 39e0f991a62ed5efabd20711a7b6e7da92603170 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: 428826f5358c ("fdt: add support for rng-seed")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 917470c4490a..3feafab498ad 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; |
