* [PATCH v2] Export percpu-refcount functions
@ 2013-10-14 8:55 Matias Bjorling
2013-10-14 8:55 ` [PATCH] percpu_refcount: Export symbols Matias Bjorling
0 siblings, 1 reply; 3+ messages in thread
From: Matias Bjorling @ 2013-10-14 8:55 UTC (permalink / raw)
To: tj, kmo, paulmck, tytso; +Cc: linux-kernel, Matias Bjorling
ERROR: "percpu_ref_kill_and_confirm" [...] undefined!
Working on a driver that needs them, but other modules might benefit as well.
The second version changes export symbols to GPL per Paul and Tejun's
suggestion.
(https://lkml.org/lkml/2013/10/11/370)
Kent, will you replace the previous patch with the updated. Sorry for the
inconvenience.
Changes in v2:
[1/1] Uses EXPORT_SYMBOL_GPL
Matias Bjorling (1):
percpu-refcount: Export symbols
lib/percpu-refcount.c | 3 +++
1 file changed, 3 insertions(+)
--
1.8.1.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] percpu_refcount: Export symbols
2013-10-14 8:55 [PATCH v2] Export percpu-refcount functions Matias Bjorling
@ 2013-10-14 8:55 ` Matias Bjorling
2013-10-14 13:35 ` Tejun Heo
0 siblings, 1 reply; 3+ messages in thread
From: Matias Bjorling @ 2013-10-14 8:55 UTC (permalink / raw)
To: tj, kmo, paulmck, tytso; +Cc: linux-kernel, Matias Bjorling
Export the interface to be used within modules.
Signed-off-by: Matias Bjorling <m@bjorling.me>
---
lib/percpu-refcount.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c
index 7deeb62..1a53d49 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_GPL(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_GPL(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_GPL(percpu_ref_kill_and_confirm);
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] percpu_refcount: Export symbols
2013-10-14 8:55 ` [PATCH] percpu_refcount: Export symbols Matias Bjorling
@ 2013-10-14 13:35 ` Tejun Heo
0 siblings, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2013-10-14 13:35 UTC (permalink / raw)
To: Matias Bjorling; +Cc: kmo, paulmck, tytso, linux-kernel, Andrew Morton
(cc'ing Andrew)
On Mon, Oct 14, 2013 at 10:55:32AM +0200, Matias Bjorling wrote:
> Export the interface to be used within modules.
>
> Signed-off-by: Matias Bjorling <m@bjorling.me>
Acked-by: Tejun Heo <tj@kernel.org>
Andrew, I don't have any percpu changes queued or scheduled for the
next merge window and I think it'd be easier if you can pick up this
one. The original patch is at
http://article.gmane.org/gmane.linux.kernel/1578435/raw
Thanks a lot!
--
tejun
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-14 13:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14 8:55 [PATCH v2] Export percpu-refcount functions Matias Bjorling
2013-10-14 8:55 ` [PATCH] percpu_refcount: Export symbols Matias Bjorling
2013-10-14 13:35 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).