]> git.hungrycats.org Git - linux/commitdiff
workqueue: un-GPL function delayed_work_timer_fn()
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 24 Jan 2013 12:36:31 +0000 (16:36 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2013 17:20:55 +0000 (09:20 -0800)
commit 1438ade5670b56d5386c220e1ad4b5a824a1e585 upstream.

commit d8e794dfd51c368ed3f686b7f4172830b60ae47b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/workqueue.c

index 1dae900df798d1c4e1be722567fd2906041f08f5..bb05784cd0434b564769596dd1c53210ae3d9b32 100644 (file)
@@ -1350,7 +1350,7 @@ void delayed_work_timer_fn(unsigned long __data)
        /* should have been called from irqsafe timer with irq already off */
        __queue_work(dwork->cpu, cwq->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)