History

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!

John Stultz committed 15 years ago

Commit 9bb99b11 parent 1f5a2471 file · +5 −2Browse files

Showing the changes to lib/timerqueue.c (1 of 1 file). Show all

Unified · Split

lib/timerqueue.c+5−2
@@ -24,6 +24,7 @@ · 23 unmodified lines
2424
2525 #include <linux/timerqueue.h>
2626 #include <linux/rbtree.h>
27+#include <linux/module.h>
2728
2829 /**
2930 * timerqueue_add - Adds timer to timerqueue.
@@ -57,6 +58,7 @@ void timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node) · 27 unmodified lines
5758 if (!head->next || node->expires.tv64 < head->next->expires.tv64)
5859 head->next = node;
5960 }
61+EXPORT_SYMBOL_GPL(timerqueue_add);
6062
6163 /**
6264 * timerqueue_del - Removes a timer from the timerqueue.
@@ -80,7 +82,7 @@ void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) · 17 unmodified lines
8082 rb_erase(&node->node, &head->head);
8183 RB_CLEAR_NODE(&node->node);
8284 }
83−
85+EXPORT_SYMBOL_GPL(timerqueue_del);
8486
8587 /**
8688 * timerqueue_getnext - Returns the timer with the earlies expiration time
@@ -94,7 +96,7 @@ struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head) · 7 unmodified lines
9496 {
9597 return head->next;
9698 }
97−
99+EXPORT_SYMBOL_GPL(timerqueue_getnext);
98100
99101 /**
100102 * timerqueue_iterate_next - Returns the timer after the provided timer
@@ -116,3 +118,4 @@ struct timerqueue_node *timerqueue_iterate_next(struct timerqueue_node *node) · 15 unmodified lines
116118 return NULL;
117119 return container_of(next, struct timerqueue_node, node);
118120 }
121+EXPORT_SYMBOL_GPL(timerqueue_iterate_next);