OSDN Git Service

x86/paravirt: Remove GPL from pv_ops export
authorJuergen Gross <jgross@suse.com>
Mon, 29 Oct 2018 15:01:16 +0000 (16:01 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 29 Oct 2018 18:04:05 +0000 (19:04 +0100)
commit8af1909580595a303b03d5999e410d407b7a6db7
tree9382612d136d01b2835a858086412f4b44b3939c
parent2022cceb4e30f1bb4c84d40ffa705aa8d8d68adb
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).

Fixes: 5c83511bdb9832 ("x86/paravirt: Use a single ops structure")
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: xen-devel@lists.xenproject.org
Cc: virtualization@lists.linux-foundation.org
Cc: akataria@vmware.com
Cc: rusty@rustcorp.com.au
Cc: boris.ostrovsky@oracle.com
Cc: hpa@zytor.com
Link: https://lkml.kernel.org/r/20181029150116.25372-1-jgross@suse.com
arch/x86/kernel/paravirt.c