Skip to contentSkip to conversation

kselftest/timers: fix build failure

PATCH Superseded Santosh Sivaraj 2 participants 3 messages Jul 25, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kselftest/timers: fix build failure

"message" parameter was not passed to ksft_exit_skip.

---
 tools/testing/selftests/timers/freq-step.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/freq-step.c +1 -1
index e8c6183..bda9744 100644
@@ -231,7 +231,7 @@ static void init_test(void)
 
 	if (precision > MAX_PRECISION) {
 		printf("[SKIP]\n");
-		ksft_exit_skip();
+		ksft_exit_skip("[SKIP]\n");
 	}
 
 	printf("[OK]\n");
Signature · 1 line
2.9.4
#1 lore raw
Quoted 1 line · Santosh Sivaraj

"message" parameter was not passed to ksft_exit_skip.

It looks like this was a bad merge of 76739256 and 54f57baa, which added the new parameter to ksft_exit_skip().

tools/testing/selftests/timers/freq-step.c static void init_test(void) · line 234

Quoted 6 lines
tools/testing/selftests/timers/freq-step.c +1 -1
@@ -231,7 +231,7 @@ static void init_test(void)
 
 	if (precision > MAX_PRECISION) {
 		printf("[SKIP]\n");
-		ksft_exit_skip();
+		ksft_exit_skip("[SKIP]\n");

To avoid printing "skip" multiple times, I'd suggest to change the argument of ksft_exit_skip to NULL.

Thanks,

Signature · 1 line
Miroslav Lichvar
#2 lore raw

PATCH v2 1/1 kselftest/timers: fix build failure

Pass missing parameter to ksft_exit_skip.

---
V2 update: Pass NULL as suggested by Miroslav Lichvar

 tools/testing/selftests/timers/freq-step.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/freq-step.c +1 -1
index e8c6183..deff065 100644
@@ -231,7 +231,7 @@ static void init_test(void)
 
 	if (precision > MAX_PRECISION) {
 		printf("[SKIP]\n");
-		ksft_exit_skip();
+		ksft_exit_skip(NULL);
 	}
 
 	printf("[OK]\n");
Signature · 1 line
2.9.4