Skip to content

Commit 26e0854

Browse files
Villemoestytso
authored andcommitted
drivers/char/random.c: constify poolinfo_table
Never modified, might as well be put in .rodata. Signed-off-by: Rasmus Villemoes <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
1 parent dc4060a commit 26e0854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static int random_write_wakeup_bits = 28 * OUTPUT_POOL_WORDS;
359359
* polynomial which improves the resulting TGFSR polynomial to be
360360
* irreducible, which we have made here.
361361
*/
362-
static struct poolinfo {
362+
static const struct poolinfo {
363363
int poolbitshift, poolwords, poolbytes, poolbits, poolfracbits;
364364
#define S(x) ilog2(x)+5, (x), (x)*4, (x)*32, (x) << (ENTROPY_SHIFT+5)
365365
int tap1, tap2, tap3, tap4, tap5;

0 commit comments

Comments
 (0)