* [PATCH] sched/Documentation: fix code
@ 2026-07-03 11:51 Manuel Ebner
2026-07-08 0:15 ` Randy Dunlap
2026-07-10 19:31 ` Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Manuel Ebner @ 2026-07-03 11:51 UTC (permalink / raw)
To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot,
Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
Valentin Schneider, K Prateek Nayak, Jonathan Corbet, Shuah Khan
Cc: Manuel Ebner, linux-doc, linux-kernel
checkpatch.pl returns 'trailing statements should be on next line'
for this file. Do as told.
Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
---
This is the only checkpatch-error in all of Documentation/*/*.c
---
Documentation/scheduler/sched-pelt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/scheduler/sched-pelt.c b/Documentation/scheduler/sched-pelt.c
index 7238b355919c..38ff53dcf352 100644
--- a/Documentation/scheduler/sched-pelt.c
+++ b/Documentation/scheduler/sched-pelt.c
@@ -25,7 +25,8 @@ void calc_runnable_avg_yN_inv(void)
for (i = 0; i < HALFLIFE; i++) {
x = ((1UL<<32)-1)*pow(y, i);
- if (i % 6 == 0) printf("\n\t");
+ if (i % 6 == 0)
+ printf("\n\t");
printf("0x%8x, ", x);
}
printf("\n};\n\n");
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] sched/Documentation: fix code
2026-07-03 11:51 [PATCH] sched/Documentation: fix code Manuel Ebner
@ 2026-07-08 0:15 ` Randy Dunlap
2026-07-10 19:31 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2026-07-08 0:15 UTC (permalink / raw)
To: Manuel Ebner, Ingo Molnar, Peter Zijlstra, Juri Lelli,
Vincent Guittot, Dietmar Eggemann, Steven Rostedt, Ben Segall,
Mel Gorman, Valentin Schneider, K Prateek Nayak, Jonathan Corbet,
Shuah Khan
Cc: linux-doc, linux-kernel
On 7/3/26 4:51 AM, Manuel Ebner wrote:
> checkpatch.pl returns 'trailing statements should be on next line'
> for this file. Do as told.
>
and the other instances of this check are split onto 2 lines.
> Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> This is the only checkpatch-error in all of Documentation/*/*.c
> ---
> Documentation/scheduler/sched-pelt.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/scheduler/sched-pelt.c b/Documentation/scheduler/sched-pelt.c
> index 7238b355919c..38ff53dcf352 100644
> --- a/Documentation/scheduler/sched-pelt.c
> +++ b/Documentation/scheduler/sched-pelt.c
> @@ -25,7 +25,8 @@ void calc_runnable_avg_yN_inv(void)
> for (i = 0; i < HALFLIFE; i++) {
> x = ((1UL<<32)-1)*pow(y, i);
>
> - if (i % 6 == 0) printf("\n\t");
> + if (i % 6 == 0)
> + printf("\n\t");
> printf("0x%8x, ", x);
> }
> printf("\n};\n\n");
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] sched/Documentation: fix code
2026-07-03 11:51 [PATCH] sched/Documentation: fix code Manuel Ebner
2026-07-08 0:15 ` Randy Dunlap
@ 2026-07-10 19:31 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2026-07-10 19:31 UTC (permalink / raw)
To: Manuel Ebner, Ingo Molnar, Peter Zijlstra, Juri Lelli,
Vincent Guittot, Dietmar Eggemann, Steven Rostedt, Ben Segall,
Mel Gorman, Valentin Schneider, K Prateek Nayak, Shuah Khan
Cc: Manuel Ebner, linux-doc, linux-kernel
Manuel Ebner <manuelebner@mailbox.org> writes:
> checkpatch.pl returns 'trailing statements should be on next line'
> for this file. Do as told.
>
> Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
> ---
> This is the only checkpatch-error in all of Documentation/*/*.c
> ---
> Documentation/scheduler/sched-pelt.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/scheduler/sched-pelt.c b/Documentation/scheduler/sched-pelt.c
> index 7238b355919c..38ff53dcf352 100644
> --- a/Documentation/scheduler/sched-pelt.c
> +++ b/Documentation/scheduler/sched-pelt.c
> @@ -25,7 +25,8 @@ void calc_runnable_avg_yN_inv(void)
> for (i = 0; i < HALFLIFE; i++) {
> x = ((1UL<<32)-1)*pow(y, i);
>
> - if (i % 6 == 0) printf("\n\t");
> + if (i % 6 == 0)
> + printf("\n\t");
> printf("0x%8x, ", x);
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-10 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 11:51 [PATCH] sched/Documentation: fix code Manuel Ebner
2026-07-08 0:15 ` Randy Dunlap
2026-07-10 19:31 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox