Commit 9bb99b147018945366c763b3d4d7008927dc8557
1 parent
1f5a24794a
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>
Showing 1 changed file with 5 additions and 2 deletions Side-by-side Diff
lib/timerqueue.c
... | ... | @@ -24,6 +24,7 @@ |
24 | 24 | |
25 | 25 | #include <linux/timerqueue.h> |
26 | 26 | #include <linux/rbtree.h> |
27 | +#include <linux/module.h> | |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * timerqueue_add - Adds timer to timerqueue. |
... | ... | @@ -57,6 +58,7 @@ |
57 | 58 | if (!head->next || node->expires.tv64 < head->next->expires.tv64) |
58 | 59 | head->next = node; |
59 | 60 | } |
61 | +EXPORT_SYMBOL_GPL(timerqueue_add); | |
60 | 62 | |
61 | 63 | /** |
62 | 64 | * timerqueue_del - Removes a timer from the timerqueue. |
63 | 65 | |
... | ... | @@ -80,8 +82,8 @@ |
80 | 82 | rb_erase(&node->node, &head->head); |
81 | 83 | RB_CLEAR_NODE(&node->node); |
82 | 84 | } |
85 | +EXPORT_SYMBOL_GPL(timerqueue_del); | |
83 | 86 | |
84 | - | |
85 | 87 | /** |
86 | 88 | * timerqueue_getnext - Returns the timer with the earlies expiration time |
87 | 89 | * |
88 | 90 | |
... | ... | @@ -94,8 +96,8 @@ |
94 | 96 | { |
95 | 97 | return head->next; |
96 | 98 | } |
99 | +EXPORT_SYMBOL_GPL(timerqueue_getnext); | |
97 | 100 | |
98 | - | |
99 | 101 | /** |
100 | 102 | * timerqueue_iterate_next - Returns the timer after the provided timer |
101 | 103 | * |
... | ... | @@ -116,4 +118,5 @@ |
116 | 118 | return NULL; |
117 | 119 | return container_of(next, struct timerqueue_node, node); |
118 | 120 | } |
121 | +EXPORT_SYMBOL_GPL(timerqueue_iterate_next); |