lkml.org 
[lkml]   [2013]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] percpu-refcount: Export symbols
On Fri, Oct 11, 2013 at 02:28:12PM +0200, Matias Bjorling wrote:
> Need to be exported for being used within modules.
>
> Signed-off-by: Matias Bjorling <m@bjorling.me>

I will bite... Why not EXPORT_SYMBOL_GPL()?

Thanx, Paul

> ---
> lib/percpu-refcount.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c
> index 7deeb62..25b9ac7 100644
> --- a/lib/percpu-refcount.c
> +++ b/lib/percpu-refcount.c
> @@ -53,6 +53,7 @@ int percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release)
> ref->release = release;
> return 0;
> }
> +EXPORT_SYMBOL(percpu_ref_init);
>
> /**
> * percpu_ref_cancel_init - cancel percpu_ref_init()
> @@ -84,6 +85,7 @@ void percpu_ref_cancel_init(struct percpu_ref *ref)
> free_percpu(ref->pcpu_count);
> }
> }
> +EXPORT_SYMBOL(percpu_ref_cancel_init);
>
> static void percpu_ref_kill_rcu(struct rcu_head *rcu)
> {
> @@ -156,3 +158,4 @@ void percpu_ref_kill_and_confirm(struct percpu_ref *ref,
>
> call_rcu_sched(&ref->rcu, percpu_ref_kill_rcu);
> }
> +EXPORT_SYMBOL(percpu_ref_kill_and_confirm);
> --
> 1.8.1.2
>



\
 
 \ /
  Last update: 2013-10-13 13:21    [W:0.043 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site