The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at 
https://src.openvz.org/scm/ovz/vzkernel.git
after ark-5.14
------>
commit 2074582a60a3db758c4ecd6376246287c4bd63f4
Author: Konstantin Khorenko <[email protected]>
Date:   Tue Sep 28 15:41:56 2021 +0300

    trace/osnoise: Fix compiler complain about using "main" local variable
    
    Signed-off-by: Konstantin Khorenko <[email protected]>
---
 kernel/trace/trace_osnoise.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c
index b61eefe5ccf5..624419da31eb 100644
--- a/kernel/trace/trace_osnoise.c
+++ b/kernel/trace/trace_osnoise.c
@@ -1512,20 +1512,20 @@ static void stop_per_cpu_kthreads(void)
 static int start_kthread(unsigned int cpu)
 {
        struct task_struct *kthread;
-       void *main = osnoise_main;
+       void *main_func = osnoise_main;
        char comm[24];
 
 #ifdef CONFIG_TIMERLAT_TRACER
        if (osnoise_data.timerlat_tracer) {
                snprintf(comm, 24, "timerlat/%d", cpu);
-               main = timerlat_main;
+               main_func = timerlat_main;
        } else {
                snprintf(comm, 24, "osnoise/%d", cpu);
        }
 #else
        snprintf(comm, 24, "osnoise/%d", cpu);
 #endif
-       kthread = kthread_create_on_cpu(main, NULL, cpu, comm);
+       kthread = kthread_create_on_cpu(main_func, NULL, cpu, comm);
 
        if (IS_ERR(kthread)) {
                pr_err(BANNER "could not start sampling thread\n");
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to