diff options
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 31456472829e..1610aa64c7cf 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -559,7 +559,13 @@ struct timer_rand_state { | |||
559 | }; | 559 | }; |
560 | 560 | ||
561 | static struct timer_rand_state input_timer_state; | 561 | static struct timer_rand_state input_timer_state; |
562 | |||
563 | #ifdef CONFIG_HAVE_DYN_ARRAY | ||
564 | static struct timer_rand_state **irq_timer_state; | ||
565 | DEFINE_DYN_ARRAY(irq_timer_state, sizeof(struct timer_rand_state *), nr_irqs, PAGE_SIZE, NULL); | ||
566 | #else | ||
562 | static struct timer_rand_state *irq_timer_state[NR_IRQS]; | 567 | static struct timer_rand_state *irq_timer_state[NR_IRQS]; |
568 | #endif | ||
563 | 569 | ||
564 | /* | 570 | /* |
565 | * This function adds entropy to the entropy "pool" by using timing | 571 | * This function adds entropy to the entropy "pool" by using timing |