Skip to contentSkip to conversation

sched/Documentation: fix code

PATCH Applied Manuel Ebner 3 participants 3 messages Jul 3 – Jul 10 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/Documentation: fix code

checkpatch.pl returns 'trailing statements should be on next line' for this file. Do as told.

---
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
index 7238b355919c..38ff53dcf352 100644
@@ -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
reviewer Acked-by Tested-by on v1 1/1
#1 lore raw
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

Thanks.

Quoted 20 lines

---
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
index 7238b355919c..38ff53dcf352 100644
@@ -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
maintainer Applied
#2 lore raw
In reply to Manuel Ebner
Quoted 15 lines · Manuel Ebner

checkpatch.pl returns 'trailing statements should be on next line' for this file. Do as told.

---
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 +0 -0
index 7238b355919c..38ff53dcf352 100644

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