[PATCH] sched: Fix code indentation at line 10371

XueBing Chen posted 1 patch 3 months, 3 weeks ago
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] sched: Fix code indentation at line 10371
Posted by XueBing Chen 3 months, 3 weeks ago
Fix checkpatch.pl indentation warning by replacing spaces with tab.

Signed-off-by: XueBing Chen <chenxb_99091@126.com>
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 198d2dd45..24fd78d42 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -10368,7 +10368,7 @@ const u32 sched_prio_to_wmult[40] = {
 
 void call_trace_sched_update_nr_running(struct rq *rq, int count)
 {
-        trace_sched_update_nr_running_tp(rq, count);
+	trace_sched_update_nr_running_tp(rq, count);
 }
 
 #ifdef CONFIG_SCHED_MM_CID
-- 
2.17.1
Re: [PATCH] sched: Fix code indentation at line 10371
Posted by Steven Rostedt 3 months, 3 weeks ago
On Fri, 17 Oct 2025 14:41:52 +0800
XueBing Chen <chenxb_99091@126.com> wrote:

> Fix checkpatch.pl indentation warning by replacing spaces with tab.

checkpatch.ps is to be used on patches *AND NEVER EXISTING CODE*!

Please do not "fix" existing code with what checkpatch complains about,
unless it's a real bug. That's not its purpose. This just adds noise to
the git log.

NAK.

-- Steve


> 
> Signed-off-by: XueBing Chen <chenxb_99091@126.com>
> ---
>  kernel/sched/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 198d2dd45..24fd78d42 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -10368,7 +10368,7 @@ const u32 sched_prio_to_wmult[40] = {
>  
>  void call_trace_sched_update_nr_running(struct rq *rq, int count)
>  {
> -        trace_sched_update_nr_running_tp(rq, count);
> +	trace_sched_update_nr_running_tp(rq, count);
>  }
>  
>  #ifdef CONFIG_SCHED_MM_CID