Repository navigation
Commit 66448bc
workqueue: move function definitions within CONFIG_SMP block
In commit 7ee681b ("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>1 parent 197f6ac commit 66448bc
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4626 | 4626 | | |
4627 | 4627 | | |
4628 | 4628 | | |
| 4629 | + | |
| 4630 | + | |
4629 | 4631 | | |
4630 | 4632 | | |
4631 | 4633 | | |
| |||
4846 | 4848 | | |
4847 | 4849 | | |
4848 | 4850 | | |
4849 | | - | |
4850 | | - | |
4851 | 4851 | | |
4852 | 4852 | | |
4853 | 4853 | | |
| |||
0 commit comments