diff options
Diffstat (limited to 'lib/timerqueue.c')
-rw-r--r-- | lib/timerqueue.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/timerqueue.c b/lib/timerqueue.c index f46de84d9467..444b0934af92 100644 --- a/lib/timerqueue.c +++ b/lib/timerqueue.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <linux/timerqueue.h> | 25 | #include <linux/timerqueue.h> |
26 | #include <linux/rbtree.h> | 26 | #include <linux/rbtree.h> |
27 | #include <linux/module.h> | ||
27 | 28 | ||
28 | /** | 29 | /** |
29 | * timerqueue_add - Adds timer to timerqueue. | 30 | * timerqueue_add - Adds timer to timerqueue. |
@@ -57,6 +58,7 @@ void timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node) | |||
57 | if (!head->next || node->expires.tv64 < head->next->expires.tv64) | 58 | if (!head->next || node->expires.tv64 < head->next->expires.tv64) |
58 | head->next = node; | 59 | head->next = node; |
59 | } | 60 | } |
61 | EXPORT_SYMBOL_GPL(timerqueue_add); | ||
60 | 62 | ||
61 | /** | 63 | /** |
62 | * timerqueue_del - Removes a timer from the timerqueue. | 64 | * timerqueue_del - Removes a timer from the timerqueue. |
@@ -80,7 +82,7 @@ void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) | |||
80 | rb_erase(&node->node, &head->head); | 82 | rb_erase(&node->node, &head->head); |
81 | RB_CLEAR_NODE(&node->node); | 83 | RB_CLEAR_NODE(&node->node); |
82 | } | 84 | } |
83 | 85 | EXPORT_SYMBOL_GPL(timerqueue_del); | |
84 | 86 | ||
85 | /** | 87 | /** |
86 | * timerqueue_getnext - Returns the timer with the earlies expiration time | 88 | * timerqueue_getnext - Returns the timer with the earlies expiration time |
@@ -94,7 +96,7 @@ struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head) | |||
94 | { | 96 | { |
95 | return head->next; | 97 | return head->next; |
96 | } | 98 | } |
97 | 99 | EXPORT_SYMBOL_GPL(timerqueue_getnext); | |
98 | 100 | ||
99 | /** | 101 | /** |
100 | * timerqueue_iterate_next - Returns the timer after the provided timer | 102 | * timerqueue_iterate_next - Returns the timer after the provided timer |
@@ -116,3 +118,4 @@ struct timerqueue_node *timerqueue_iterate_next(struct timerqueue_node *node) | |||
116 | return NULL; | 118 | return NULL; |
117 | return container_of(next, struct timerqueue_node, node); | 119 | return container_of(next, struct timerqueue_node, node); |
118 | } | 120 | } |
121 | EXPORT_SYMBOL_GPL(timerqueue_iterate_next); | ||