hulk inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/IAO4S0 CVE: NA
----------------------------------------
[stop/start]_inspect_threads do not return non-zero values. Therefore, change them return type to void.
No functional change intended.
Signed-off-by: Yu Liao liaoyu15@huawei.com --- drivers/cpuinspect/cpuinspect.c | 10 +++------- drivers/cpuinspect/cpuinspect.h | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/cpuinspect/cpuinspect.c b/drivers/cpuinspect/cpuinspect.c index 65ce790fe28d..d8d87dadf0d8 100644 --- a/drivers/cpuinspect/cpuinspect.c +++ b/drivers/cpuinspect/cpuinspect.c @@ -99,7 +99,7 @@ static int run_inspector(void *data) return 0; }
-int start_inspect_threads(void) +void start_inspect_threads(void) { unsigned int cpu = 0;
@@ -129,24 +129,20 @@ int start_inspect_threads(void) ci_core.inspect_on = 0; cpuinspect_result_notify(); } - - return 0; }
-int stop_inspect_threads(void) +void stop_inspect_threads(void) { unsigned int cpu = 0;
/* All inspection threads has been stopped */ if (atomic_read(&active_threads_num) == 0) - return 0; + return;
for_each_cpu(cpu, &ci_core.inspect_cpumask) { if (cpuinspect_threads[cpu]) kthread_stop(cpuinspect_threads[cpu]); } - - return 0; }
/** diff --git a/drivers/cpuinspect/cpuinspect.h b/drivers/cpuinspect/cpuinspect.h index 508309d34b39..c0610bef93c2 100644 --- a/drivers/cpuinspect/cpuinspect.h +++ b/drivers/cpuinspect/cpuinspect.h @@ -14,8 +14,8 @@ void cpuinspect_remove_interface(struct device *dev); void cpuinspect_result_notify(void);
/* inspect control */ -int start_inspect_threads(void); -int stop_inspect_threads(void); +void start_inspect_threads(void); +void stop_inspect_threads(void); void stop_inspect_threads_sync(void); int cpuinspect_is_running(void);