Re: [PATCH] sched/Documentation: fix code
From: Randy Dunlap
Date: Tue Jul 07 2026 - 20:16:23 EST
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@xxxxxxxxxxx>
Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
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