sched/Documentation: fix code
PATCH 1/1 sched/Documentation: fix code
checkpatch.pl returns 'trailing statements should be on next line' for this file. Do as told.
Signed-off-by Manuel Ebner <[email protected]>
---
This is the only checkpatch-error in all of Documentation/*/*.c
--- Documentation/scheduler/sched-pelt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/scheduler/sched-pelt.c +2 -1
@@ -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" );
Signature · 1 line
2.54.0
Quoted 3 lines · Manuel Ebner
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.
Quoted 1 line
Signed-off-by Manuel Ebner <[email protected]>
Acked-by Randy Dunlap <[email protected]>
Tested-by Randy Dunlap <[email protected]>
Thanks.
Quoted 20 lines
---
This is the only checkpatch-error in all ofDocumentation/*/*.c--- Documentation/scheduler/sched-pelt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/scheduler/sched-pelt.c +2
-1@@ -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" );
Signature · 1 line
~Randy
Quoted 15 lines · Manuel Ebner
checkpatch.pl returns 'trailing statements should be on next line' for this file. Do as told.
Signed-off-by Manuel Ebner <[email protected]>---
This is the only checkpatch-error in all ofDocumentation/*/*.c--- Documentation/scheduler/sched-pelt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/scheduler/sched-pelt.c +0
-0
Documentation/scheduler/sched-pelt.c void calc_runnable_avg_yN_inv(void) · line 30
Quoted 7 lines
Documentation/scheduler/sched-pelt.c +2
-1@@ -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