aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorMathieu Malaterre <[email protected]>2018-05-22 19:47:32 +0000
committerTejun Heo <[email protected]>2018-05-23 18:16:58 +0000
commit66448bc274cadedb71fda7d914e7c29d8dead217 (patch)
treea995effcf0fa2a7a5b08381cca9e6a337ab86b6b /fs/proc/array.c
parentworkqueue: Make sure struct worker is accessible for wq_worker_comm() (diff)
downloadkernel-66448bc274cadedb71fda7d914e7c29d8dead217.tar.gz
kernel-66448bc274cadedb71fda7d914e7c29d8dead217.zip
workqueue: move function definitions within CONFIG_SMP block
In commit 7ee681b25284 ("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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions