diff options
author | John Stultz <john.stultz@linaro.org> | 2010-12-06 16:32:12 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2010-12-10 14:54:02 -0500 |
commit | 9bb99b147018945366c763b3d4d7008927dc8557 (patch) | |
tree | 4a0f34124883a36fc4030ac91582eb797fbcc138 /lib/timerqueue.c | |
parent | 1f5a24794a54588ea3a9efd521be31d826e0b9d7 (diff) |
timers: Fixup allmodconfig build issue
Adds missed EXPORT_SYMBOL lines that cause the following build
failures with allmodconfig:
ERROR: "timerqueue_add" [drivers/rtc/rtc-core.ko] undefined!
ERROR: "timerqueue_getnext" [drivers/rtc/rtc-core.ko] undefined!
ERROR: "timerqueue_del" [drivers/rtc/rtc-core.ko] undefined!
Reported-by: Ingo Molnar <mingo@elte.hu>
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
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); | ||