aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/rcutorture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 42e7f01e8003..43d6d4f9ef09 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -147,7 +147,7 @@ rcu_torture_free(struct rcu_torture *p)
147 147
148struct rcu_random_state { 148struct rcu_random_state {
149 unsigned long rrs_state; 149 unsigned long rrs_state;
150 unsigned long rrs_count; 150 long rrs_count;
151}; 151};
152 152
153#define RCU_RANDOM_MULT 39916801 /* prime */ 153#define RCU_RANDOM_MULT 39916801 /* prime */
@@ -160,7 +160,7 @@ struct rcu_random_state {
160 * Crude but fast random-number generator. Uses a linear congruential 160 * Crude but fast random-number generator. Uses a linear congruential
161 * generator, with occasional help from get_random_bytes(). 161 * generator, with occasional help from get_random_bytes().
162 */ 162 */
163static long 163static unsigned long
164rcu_random(struct rcu_random_state *rrsp) 164rcu_random(struct rcu_random_state *rrsp)
165{ 165{
166 long refresh; 166 long refresh;