workqueue: Make schedule_work() available again to non GPL modules
PATCH 1/1 workqueue: Make schedule_work() available again to non GPL modules
Commit 8425e3d5bdbe ("workqueue: inline trivial wrappers") changed schedule_work() and schedule_delayed_work() to inline wrappers, but these rely on some symbols that are EXPORT_SYMBOL_GPL, while the original functions were EXPORT_SYMBOL. This has the effect of changing the licensing requirement for these functions and making them unavailable to non GPL modules.
Make them available again by removing the restriction on the required symbols.
--- kernel/workqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/workqueue.c +3 -3
@@ -296,7 +296,7 @@ static DEFINE_HASHTABLE(unbound_pool_hash, UNBOUND_POOL_HASH_ORDER);static struct workqueue_attrs *unbound_std_wq_attrs[NR_STD_WORKER_POOLS ];struct workqueue_struct *system_wq__read_mostly ; -EXPORT_SYMBOL_GPL (system_wq); +EXPORT_SYMBOL (system_wq);struct workqueue_struct *system_highpri_wq__read_mostly ;EXPORT_SYMBOL_GPL (system_highpri_wq);struct workqueue_struct *system_long_wq__read_mostly ;
@@ -1411,7 +1411,7 @@ bool queue_work_on(int cpu, struct workqueue_struct *wq,local_irq_restore (flags);return ret; } -EXPORT_SYMBOL_GPL (queue_work_on); +EXPORT_SYMBOL (queue_work_on);void delayed_work_timer_fn (unsigned long __data) {
@@ -1485,7 +1485,7 @@ bool queue_delayed_work_on(int cpu, struct workqueue_struct *wq,local_irq_restore (flags);return ret; } -EXPORT_SYMBOL_GPL (queue_delayed_work_on); +EXPORT_SYMBOL (queue_delayed_work_on);/** * mod_delayed_work_on - modify delay of or queue a delayed work on specific CPU
Signature · 1 line
1.8.1.4
Tejun Heo
maintainerQuoted 11 lines · Marc Dionne
Commit
8425e3d5bdbe("workqueue: inline trivial wrappers") changedschedule_work()andschedule_delayed_work()to inline wrappers, but these rely on some symbols that areEXPORT_SYMBOL_GPL, while the original functions wereEXPORT_SYMBOL. This has the effect of changing the licensing requirement for these functions and making them unavailable to non GPL modules.Make them available again by removing the restriction on the required symbols.
Signed-off-by Marc Dionne <[email protected]>
Will apply to workqueue/for-3.10-fixes once v3.10-rc1 drops.
Thanks.
Signature · 1 line
tejun
Quoted 11 lines · Marc Dionne
Commit
8425e3d5bdbe("workqueue: inline trivial wrappers") changedschedule_work()andschedule_delayed_work()to inline wrappers, but these rely on some symbols that areEXPORT_SYMBOL_GPL, while the original functions wereEXPORT_SYMBOL. This has the effect of changing the licensing requirement for these functions and making them unavailable to non GPL modules.Make them available again by removing the restriction on the required symbols.
Signed-off-by Marc Dionne <[email protected]>
Applied to wq/for-3.10-fixes.
Thanks.
Signature · 1 line
tejun