From: Theodore Ts'o Date: Fri, 6 Jul 2012 18:03:18 +0000 (-0400) Subject: random: fix up sparse warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74feec5dd83d879368c1081aec5b6a1cb6dd7ce2;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git random: fix up sparse warnings Add extern and static declarations to suppress sparse warnings Signed-off-by: "Theodore Ts'o" --- diff --git a/drivers/char/random.c b/drivers/char/random.c index 4ec04a75473..cb541b9a523 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -1279,6 +1279,7 @@ static int proc_do_uuid(ctl_table *table, int write, } static int sysctl_poolsize = INPUT_POOL_WORDS * 32; +extern ctl_table random_table[]; ctl_table random_table[] = { { .procname = "poolsize", @@ -1344,7 +1345,7 @@ late_initcall(random_int_secret_init); * value is not cryptographically secure but for several uses the cost of * depleting entropy is too high */ -DEFINE_PER_CPU(__u32 [MD5_DIGEST_WORDS], get_random_int_hash); +static DEFINE_PER_CPU(__u32 [MD5_DIGEST_WORDS], get_random_int_hash); unsigned int get_random_int(void) { __u32 *hash;