workqueue: Make workqueue_init*() return void
The return values of workqueue_init() and workqueue_early_int() are always 0, and there is no usage of their return value. So just make them return void. Signed-off-by: Yu Chen <chen.yu@easystack.cn> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
@@ -649,7 +649,7 @@ int workqueue_online_cpu(unsigned int cpu);
|
|||||||
int workqueue_offline_cpu(unsigned int cpu);
|
int workqueue_offline_cpu(unsigned int cpu);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int __init workqueue_init_early(void);
|
void __init workqueue_init_early(void);
|
||||||
int __init workqueue_init(void);
|
void __init workqueue_init(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -5896,7 +5896,7 @@ static void __init wq_numa_init(void)
|
|||||||
* items. Actual work item execution starts only after kthreads can be
|
* items. Actual work item execution starts only after kthreads can be
|
||||||
* created and scheduled right before early initcalls.
|
* created and scheduled right before early initcalls.
|
||||||
*/
|
*/
|
||||||
int __init workqueue_init_early(void)
|
void __init workqueue_init_early(void)
|
||||||
{
|
{
|
||||||
int std_nice[NR_STD_WORKER_POOLS] = { 0, HIGHPRI_NICE_LEVEL };
|
int std_nice[NR_STD_WORKER_POOLS] = { 0, HIGHPRI_NICE_LEVEL };
|
||||||
int hk_flags = HK_FLAG_DOMAIN | HK_FLAG_WQ;
|
int hk_flags = HK_FLAG_DOMAIN | HK_FLAG_WQ;
|
||||||
@@ -5963,8 +5963,6 @@ int __init workqueue_init_early(void)
|
|||||||
!system_unbound_wq || !system_freezable_wq ||
|
!system_unbound_wq || !system_freezable_wq ||
|
||||||
!system_power_efficient_wq ||
|
!system_power_efficient_wq ||
|
||||||
!system_freezable_power_efficient_wq);
|
!system_freezable_power_efficient_wq);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -5976,7 +5974,7 @@ int __init workqueue_init_early(void)
|
|||||||
* are no kworkers executing the work items yet. Populate the worker pools
|
* are no kworkers executing the work items yet. Populate the worker pools
|
||||||
* with the initial workers and enable future kworker creations.
|
* with the initial workers and enable future kworker creations.
|
||||||
*/
|
*/
|
||||||
int __init workqueue_init(void)
|
void __init workqueue_init(void)
|
||||||
{
|
{
|
||||||
struct workqueue_struct *wq;
|
struct workqueue_struct *wq;
|
||||||
struct worker_pool *pool;
|
struct worker_pool *pool;
|
||||||
@@ -6023,6 +6021,4 @@ int __init workqueue_init(void)
|
|||||||
|
|
||||||
wq_online = true;
|
wq_online = true;
|
||||||
wq_watchdog_init();
|
wq_watchdog_init();
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user