Use EXPORT_SYMBOL for pv_lock_ops
Subsystems (2)
PATCH 1/1 Use EXPORT_SYMBOL for pv_lock_ops
Quoted 12 lines · Jeremy Fitzhardinge
Quoted 10 lines · drago01 wrote:
Hi,
It seems that in 2.6.27
pv_lock_opsis now GPL only which breaks binary drivers because they pick it up implicitly whenCONFIG_PARAVIRTis enabled.
(see http://www.nvnews.net/vbulletin/showpost.php?p=1750090&postcount=2)
Is there a reason for doing this?
As some other pv_* are exported to all modules can this be done for this too? (there should be no difference betweenCONFIG_PARAVIRTon or of for GPL'd symbols).
Quoted 6 lines
Yeah, they're just GPL by default, but the lock code is not exported GPL so there's no reason why
lock_opsshould be.J
Use EXPORT_SYMBOL for pv_lock_ops to preserve the behavior between CONFIG_PARAVIRT set and unset.
Currently we only used _GPL when the non paravirt symbols are GPL only too.
arch/x86/kernel/paravirt.c +1 -1
@@ -471,7 +471,7 @@ struct pv_lock_ops pv_lock_ops = { .spin_unlock = __ticket_spin_unlock,#endif }; -EXPORT_SYMBOL_GPL (pv_lock_ops); +EXPORT_SYMBOL (pv_lock_ops);EXPORT_SYMBOL_GPL (pv_time_ops);EXPORT_SYMBOL (pv_cpu_ops);
Quoted 32 lines · On Wed, Aug 20, 2008 at 9:25 PM, drago01 <[email protected]> wrote:
Quoted 12 lines · Jeremy Fitzhardinge
Quoted 10 lines · drago01 wrote:
Hi,
It seems that in 2.6.27
pv_lock_opsis now GPL only which breaks binary drivers because they pick it up implicitly whenCONFIG_PARAVIRTis enabled.
(see http://www.nvnews.net/vbulletin/showpost.php?p=1750090&postcount=2)
Is there a reason for doing this?
As some other pv_* are exported to all modules can this be done for this too? (there should be no difference betweenCONFIG_PARAVIRTon or of for GPL'd symbols).Quoted 6 lines
Yeah, they're just GPL by default, but the lock code is not exported GPL so there's no reason why
lock_opsshould be.J
Use
EXPORT_SYMBOLforpv_lock_opsto preserve the behavior betweenCONFIG_PARAVIRTset and unset.
Currently we only used_GPLwhen the non paravirt symbols are GPL only too.Signed-off-by Adel Gadllah <[email protected]>arch/x86/kernel/paravirt.c +0
-0
arch/x86/kernel/paravirt.c struct pv_lock_ops pv_lock_ops = { · line 477
Quoted 8 lines
arch/x86/kernel/paravirt.c +1
-1@@ -471,7 +471,7 @@ struct pv_lock_ops pv_lock_ops = { .spin_unlock = __ticket_spin_unlock,#endif }; -EXPORT_SYMBOL_GPL (pv_lock_ops); +EXPORT_SYMBOL (pv_lock_ops);EXPORT_SYMBOL_GPL (pv_time_ops);EXPORT_SYMBOL (pv_cpu_ops);
Seems like Jeremy already sent a patch, ignore this one.