diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2018-11-02 12:04:45 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-04-17 10:30:21 -0400 |
commit | 26e0854ab3310bbeef1ed404a2c87132fc91f8e1 (patch) | |
tree | b424be0d1419e83b78bff7739067b9c04214e1b2 /drivers/char/random.c | |
parent | dc4060a5dc2557e6b5aa813bf5b73677299d62d2 (diff) | |
download | lwn-26e0854ab3310bbeef1ed404a2c87132fc91f8e1.tar.gz lwn-26e0854ab3310bbeef1ed404a2c87132fc91f8e1.zip |
drivers/char/random.c: constify poolinfo_table
Never modified, might as well be put in .rodata.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 38c6d1af6d1c..8e329a0f859a 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -359,7 +359,7 @@ static int random_write_wakeup_bits = 28 * OUTPUT_POOL_WORDS; * polynomial which improves the resulting TGFSR polynomial to be * irreducible, which we have made here. */ -static struct poolinfo { +static const struct poolinfo { int poolbitshift, poolwords, poolbytes, poolbits, poolfracbits; #define S(x) ilog2(x)+5, (x), (x)*4, (x)*32, (x) << (ENTROPY_SHIFT+5) int tap1, tap2, tap3, tap4, tap5; |