public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: export pv_lock_ops non-GPL
@ 2008-08-20 18:31 Jeremy Fitzhardinge
  2008-08-21  9:10 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Fitzhardinge @ 2008-08-20 18:31 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linux Kernel Mailing List

None of the spinlock API is exported GPL, so there's no reason for
pv_lock_ops to be.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: drago01 <drago01@gmail.com>
---
 arch/x86/kernel/paravirt-spinlocks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

===================================================================
--- a/arch/x86/kernel/paravirt-spinlocks.c
+++ b/arch/x86/kernel/paravirt-spinlocks.c
@@ -17,7 +17,7 @@
 	.spin_unlock = __ticket_spin_unlock,
 #endif
 };
-EXPORT_SYMBOL_GPL(pv_lock_ops);
+EXPORT_SYMBOL(pv_lock_ops);
 
 void __init paravirt_use_bytelocks(void)
 {



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: export pv_lock_ops non-GPL
  2008-08-20 18:31 [PATCH] x86: export pv_lock_ops non-GPL Jeremy Fitzhardinge
@ 2008-08-21  9:10 ` Ingo Molnar
  2008-08-21 10:42   ` Ingo Molnar
  2008-08-21 16:25   ` Jeremy Fitzhardinge
  0 siblings, 2 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-08-21  9:10 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: Linux Kernel Mailing List, Linus Torvalds, Andrew Morton


* Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> None of the spinlock API is exported GPL, so there's no reason for 
> pv_lock_ops to be.

uhm, why is this even a question? All of this stuff is so deep inside 
the guts of the kernel ... so nope - if then we want to change the 
others to _GPL exports as well, just to make sure nobody gets funny 
ideas.

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: export pv_lock_ops non-GPL
  2008-08-21  9:10 ` Ingo Molnar
@ 2008-08-21 10:42   ` Ingo Molnar
  2008-08-21 16:25   ` Jeremy Fitzhardinge
  1 sibling, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-08-21 10:42 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: Linux Kernel Mailing List, Linus Torvalds, Andrew Morton,
	H. Peter Anvin, Thomas Gleixner


* Ingo Molnar <mingo@elte.hu> wrote:

> * Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> 
> > None of the spinlock API is exported GPL, so there's no reason for 
> > pv_lock_ops to be.
> 
> uhm, why is this even a question? All of this stuff is so deep inside 
> the guts of the kernel ... so nope - if then we want to change the 
> others to _GPL exports as well, just to make sure nobody gets funny 
> ideas.

i've nevertheless applied it to tip/x86/urgent - but it would be nice to 
clean all of this up and only export the minimally necessary (ex include 
file inline functions) APIs and none of the paravirt stuff.

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: export pv_lock_ops non-GPL
  2008-08-21  9:10 ` Ingo Molnar
  2008-08-21 10:42   ` Ingo Molnar
@ 2008-08-21 16:25   ` Jeremy Fitzhardinge
  1 sibling, 0 replies; 4+ messages in thread
From: Jeremy Fitzhardinge @ 2008-08-21 16:25 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linux Kernel Mailing List, Linus Torvalds, Andrew Morton

Ingo Molnar wrote:
> uhm, why is this even a question? All of this stuff is so deep inside 
> the guts of the kernel ... so nope - if then we want to change the 
> others to _GPL exports as well, just to make sure nobody gets funny 
> ideas.

pv_lock_ops gets accessed by inline functions which get inlined into
modules.  They should never directly access it, but the generated code
will.  _spin_lock() is in exactly the same situation.

    J


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-21 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 18:31 [PATCH] x86: export pv_lock_ops non-GPL Jeremy Fitzhardinge
2008-08-21  9:10 ` Ingo Molnar
2008-08-21 10:42   ` Ingo Molnar
2008-08-21 16:25   ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox