Skip to contentSkip to conversation

x86/paravirt: pv_ops isn't GPL only

PATCH New Juergen Gross 2 participants 2 messages Oct 29, 2018

Subsystems (2)
lore
Share & tools
lore

Juergen Gross

author maintainer
#0 lore raw

PATCH 1/1 x86/paravirt: pv_ops isn't GPL only

Commit 5c83511bdb9832 ("x86/paravirt: Use a single ops structure") introduced a regression for out-of-tree modules using spinlocks, as pv_lock_ops was exported via EXPORT_SYMBOL(), while the new pv_ops structure now containing the pv lock operations is exported via EXPORT_SYMBOL_GPL().

Change that by using EXPORT_SYMBOL(pv_ops).

Fixes 5c83511bdb9832 ("x86/paravirt: Use a single ops structure")
---
 arch/x86/kernel/paravirt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/paravirt.c +1 -1
index e4d4df37922a..45123b116c05 100644
@@ -483,5 +483,5 @@ NOKPROBE_SYMBOL(native_set_debugreg);
 NOKPROBE_SYMBOL(native_load_idt);
 #endif
 
-EXPORT_SYMBOL_GPL(pv_ops);
+EXPORT_SYMBOL(pv_ops);
 EXPORT_SYMBOL_GPL(pv_info);
Signature · 1 line
2.16.4
#1 lore raw

[tip:x86/urgent] x86/paravirt: Remove GPL from pv_ops export

x86/paravirt: Remove GPL from pv_ops export
Commit-ID:  8af1909580595a303b03d5999e410d407b7a6db7
Gitweb:     https://git.kernel.org/tip/8af1909580595a303b03d5999e410d407b7a6db7
Author:     Juergen Gross <[email protected]>
AuthorDate: Mon, 29 Oct 2018 16:01:16 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Mon, 29 Oct 2018 19:04:05 +0100

x86/paravirt: Remove GPL from pv_ops export

Commit 5c83511bdb9832 ("x86/paravirt: Use a single ops structure") introduced a regression for out-of-tree modules using spinlocks, as pv_lock_ops was exported via EXPORT_SYMBOL(), while the new pv_ops structure now containing the pv lock operations is exported via EXPORT_SYMBOL_GPL().

Change that by using EXPORT_SYMBOL(pv_ops).

---
 arch/x86/kernel/paravirt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/paravirt.c +1 -1
index e4d4df37922a..45123b116c05 100644
@@ -483,5 +483,5 @@ NOKPROBE_SYMBOL(native_set_debugreg);
 NOKPROBE_SYMBOL(native_load_idt);
 #endif
 
-EXPORT_SYMBOL_GPL(pv_ops);
+EXPORT_SYMBOL(pv_ops);
 EXPORT_SYMBOL_GPL(pv_info);