From: Rasmus Villemoes Date: Fri, 2 Nov 2018 11:04:45 +0000 (+0100) Subject: drivers/char/random.c: constify poolinfo_table X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5d75e6df54a7f52b7e89bb191a2ed0729c3624e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers/char/random.c: constify poolinfo_table commit 26e0854ab3310bbeef1ed404a2c87132fc91f8e1 upstream. Never modified, might as well be put in .rodata. Signed-off-by: Rasmus Villemoes Signed-off-by: Theodore Ts'o Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/random.c b/drivers/char/random.c index 9526bb98bb46..60c085b6179f 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;