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!
Showing the changes to lib/timerqueue.c (1 of 1 file). Show all
Unified · Split
| @@ -24,6 +24,7 @@ · 23 unmodified lines | |||
| 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) · 27 unmodified lines | |||
| 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) · 17 unmodified lines | |||
| 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) · 7 unmodified lines | |||
| 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) · 15 unmodified lines | |||
| 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); | ||