From: Suresh E. Warrier <hidden> Date: 2015-02-24 00:10:24
Export __spin_yield so that the arch_spin_unlock() function
can be invoked from a module.
Signed-off-by: Suresh Warrier <redacted>
---
arch/powerpc/lib/locks.c | 1 +
1 file changed, 1 insertion(+)
From: Suresh E. Warrier <hidden> Date: 2015-02-24 16:37:55
On 02/23/2015 09:38 PM, Benjamin Herrenschmidt wrote:
On Mon, 2015-02-23 at 18:10 -0600, Suresh E. Warrier wrote:
quoted
Export __spin_yield so that the arch_spin_unlock() function
can be invoked from a module.
Make it EXPORT_SYMBOL_GPL. Also explain why a module might need it
Sure, I will change that to EXPORT_SYMBOL_GPL. Just curious, though,
there is another symbol arch_spin_unlock_wait that is exported from
the file without the _GPL prefix. Any idea why?
I have mentioned that this needs to be exported to call the
arch_spin_unlock() function from a module. What additional information
do you think will be useful here ? Are you looking at something
that explains why a module might need to call arch_spin_unlock()?
Thanks.
-suresh
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2015-02-24 21:11:59
On Tue, 2015-02-24 at 10:37 -0600, Suresh E. Warrier wrote:
On 02/23/2015 09:38 PM, Benjamin Herrenschmidt wrote:
quoted
On Mon, 2015-02-23 at 18:10 -0600, Suresh E. Warrier wrote:
quoted
Export __spin_yield so that the arch_spin_unlock() function
can be invoked from a module.
Make it EXPORT_SYMBOL_GPL. Also explain why a module might need it
Sure, I will change that to EXPORT_SYMBOL_GPL. Just curious, though,
there is another symbol arch_spin_unlock_wait that is exported from
the file without the _GPL prefix. Any idea why?
Nope. Not sure how come we did that.
I have mentioned that this needs to be exported to call the
arch_spin_unlock() function from a module. What additional information
do you think will be useful here ? Are you looking at something
that explains why a module might need to call arch_spin_unlock()?