Skip to content

Commit

Permalink
workqueue: un-GPL function delayed_work_timer_fn()
Browse files Browse the repository at this point in the history
commit d8e794d ("workqueue: set
delayed_work->timer function on initialization") exports function
delayed_work_timer_fn() only for GPL modules. This makes delayed-works
unusable for non-GPL modules, because initialization macro now requires
GPL symbol. For example schedule_delayed_work() available for non-GPL.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org # 3.7
  • Loading branch information
Konstantin Khlebnikov authored and Tejun Heo committed Feb 19, 2013
1 parent 112202d commit 1438ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ void delayed_work_timer_fn(unsigned long __data)
/* should have been called from irqsafe timer with irq already off */
__queue_work(dwork->cpu, dwork->wq, &dwork->work);
}
EXPORT_SYMBOL_GPL(delayed_work_timer_fn);
EXPORT_SYMBOL(delayed_work_timer_fn);

static void __queue_delayed_work(int cpu, struct workqueue_struct *wq,
struct delayed_work *dwork, unsigned long delay)
Expand Down

0 comments on commit 1438ade

Please sign in to comment.