]> www.infradead.org Git - users/willy/linux.git/commitdiff
drivers/char/random.c: constify poolinfo_table
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 2 Nov 2018 11:04:45 +0000 (12:04 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 7 Nov 2018 16:44:50 +0000 (11:44 -0500)
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>
drivers/char/random.c

index c75b6cdf00533ac82ec6fb957bc1669f1f44a34d..6647ec667ec451bcfef333723ed57139dcd62386 100644 (file)
@@ -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;