]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: move function definitions within CONFIG_SMP block
authorMathieu Malaterre <malat@debian.org>
Tue, 22 May 2018 19:47:32 +0000 (21:47 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 23 May 2018 18:16:58 +0000 (11:16 -0700)
commitef5556993cb078812f570682b0f0813d5bb4b926
treea995effcf0fa2a7a5b08381cca9e6a337ab86b6b
parentcade6633a490e8bc70764121d81d507db9bf101d
workqueue: move function definitions within CONFIG_SMP block

In commit 3badc88d6818 ("workqueue: Convert to state machine callbacks"),
three new function definitions were added: ‘workqueue_prepare_cpu’,
‘workqueue_online_cpu’ and ‘workqueue_offline_cpu’.

Move these function definitions within a CONFIG_SMP block since they are
not used outside of it. This will match function declarations in header
<include/linux/workqueue.h>, and silence the following gcc warning (W=1):

  kernel/workqueue.c:4743:5: warning: no previous prototype for ‘workqueue_prepare_cpu’ [-Wmissing-prototypes]
  kernel/workqueue.c:4756:5: warning: no previous prototype for ‘workqueue_online_cpu’ [-Wmissing-prototypes]
  kernel/workqueue.c:4783:5: warning: no previous prototype for ‘workqueue_offline_cpu’ [-Wmissing-prototypes]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c