[PATCH] lib/plist.c: Export plist_*() APIs

From: Hareesh Gundu
Date: Tue Dec 05 2017 - 09:36:03 EST


Allow plist_add(), plist_del() and plist_requeue() APIs to
be referenced by kernel modules by adding the EXPORT_SYMBOL().

Signed-off-by: Hareesh Gundu <hareeshg@xxxxxxxxxxxxxx>
---
lib/plist.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/lib/plist.c b/lib/plist.c
index 199408f..6109b75 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -103,6 +103,7 @@ void plist_add(struct plist_node *node, struct plist_head *head)

plist_check_head(head);
}
+EXPORT_SYMBOL(plist_add);

/**
* plist_del - Remove a @node from plist.
@@ -132,6 +133,7 @@ void plist_del(struct plist_node *node, struct plist_head *head)

plist_check_head(head);
}
+EXPORT_SYMBOL(plist_del);

/**
* plist_requeue - Requeue @node at end of same-prio entries.
@@ -172,6 +174,7 @@ void plist_requeue(struct plist_node *node, struct plist_head *head)

plist_check_head(head);
}
+EXPORT_SYMBOL(plist_requeue);

#ifdef CONFIG_DEBUG_PI_LIST
#include <linux/sched.h>
--
1.9.1