Re: [PATCH] sched/Documentation: fix code

From: Jonathan Corbet

Date: Fri Jul 10 2026 - 15:31:33 EST


Manuel Ebner <manuelebner@xxxxxxxxxxx> writes:

> checkpatch.pl returns 'trailing statements should be on next line'
> for this file. Do as told.
>
> Signed-off-by: Manuel Ebner <manuelebner@xxxxxxxxxxx>
> ---
> 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