lkml.org 
[lkml]   [2017]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] lib/plist.c: Export plist_*() APIs
Date
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@codeaurora.org>
---
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
\
 
 \ /
  Last update: 2017-12-05 15:39    [W:0.065 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site