diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-07-06 14:03:18 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-07-06 14:13:25 -0400 |
commit | 74feec5dd83d879368c1081aec5b6a1cb6dd7ce2 (patch) | |
tree | 7889dbfdc594cf1aa5fcd2f5a3010d0576699e0d /drivers/char/random.c | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
random: fix up sparse warnings
Add extern and static declarations to suppress sparse warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 4ec04a754733..cb541b9a5231 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, | |||
1279 | } | 1279 | } |
1280 | 1280 | ||
1281 | static int sysctl_poolsize = INPUT_POOL_WORDS * 32; | 1281 | static int sysctl_poolsize = INPUT_POOL_WORDS * 32; |
1282 | extern ctl_table random_table[]; | ||
1282 | ctl_table random_table[] = { | 1283 | ctl_table random_table[] = { |
1283 | { | 1284 | { |
1284 | .procname = "poolsize", | 1285 | .procname = "poolsize", |
@@ -1344,7 +1345,7 @@ late_initcall(random_int_secret_init); | |||
1344 | * value is not cryptographically secure but for several uses the cost of | 1345 | * value is not cryptographically secure but for several uses the cost of |
1345 | * depleting entropy is too high | 1346 | * depleting entropy is too high |
1346 | */ | 1347 | */ |
1347 | DEFINE_PER_CPU(__u32 [MD5_DIGEST_WORDS], get_random_int_hash); | 1348 | static DEFINE_PER_CPU(__u32 [MD5_DIGEST_WORDS], get_random_int_hash); |
1348 | unsigned int get_random_int(void) | 1349 | unsigned int get_random_int(void) |
1349 | { | 1350 | { |
1350 | __u32 *hash; | 1351 | __u32 *hash; |