Commit 74feec5d authored by Theodore Ts'o's avatar Theodore Ts'o

random: fix up sparse warnings

Add extern and static declarations to suppress sparse warnings
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 6887a413
...@@ -1279,6 +1279,7 @@ static int proc_do_uuid(ctl_table *table, int write, ...@@ -1279,6 +1279,7 @@ static int proc_do_uuid(ctl_table *table, int write,
} }
static int sysctl_poolsize = INPUT_POOL_WORDS * 32; static int sysctl_poolsize = INPUT_POOL_WORDS * 32;
extern ctl_table random_table[];
ctl_table random_table[] = { ctl_table random_table[] = {
{ {
.procname = "poolsize", .procname = "poolsize",
...@@ -1344,7 +1345,7 @@ late_initcall(random_int_secret_init); ...@@ -1344,7 +1345,7 @@ late_initcall(random_int_secret_init);
* value is not cryptographically secure but for several uses the cost of * value is not cryptographically secure but for several uses the cost of
* depleting entropy is too high * 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) unsigned int get_random_int(void)
{ {
__u32 *hash; __u32 *hash;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment