projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc4060a
)
drivers/char/random.c: constify poolinfo_table
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Fri, 2 Nov 2018 11:04:45 +0000
(12:04 +0100)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 17 Apr 2019 14:30:21 +0000
(10:30 -0400)
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
patch
|
blob
|
history
diff --git
a/drivers/char/random.c
b/drivers/char/random.c
index 38c6d1af6d1c09c0a07bfbf8cb6a5bd42b3612ea..8e329a0f859ab7826512ff96a239582a072b7fc1 100644
(file)
--- 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;