Skip to contentSkip to conversation

selftests: breakpoints: Fix a typo of function name

PATCH In review Masami Hiramatsu 2 participants 2 messages Oct 31, 2019 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: breakpoints: Fix a typo of function name

Since commit 5821ba969511 ("selftests: Add test plan API to kselftest.h and adjust callers") accidentally introduced 'a' typo in the front of run_test() function, breakpoint_test_arm64.c became not able to be compiled.

Remove the 'a' from arun_test().

Fixes 5821ba969511 ("selftests: Add test plan API to kselftest.h and adjust callers")
Cc Kees Cook <[email protected]>
---
 .../selftests/breakpoints/breakpoint_test_arm64.c  |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/breakpoints/breakpoint_test_arm64.c +1 -1
index 58ed5eeab709..ad41ea69001b 100644
@@ -109,7 +109,7 @@ static bool set_watchpoint(pid_t pid, int size, int wp)
 	return false;
 }
 
-static bool arun_test(int wr_size, int wp_size, int wr, int wp)
+static bool run_test(int wr_size, int wp_size, int wr, int wp)
 {
 	int status;
 	siginfo_t siginfo;
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Masami Hiramatsu

Since commit 5821ba969511 ("selftests: Add test plan API to kselftest.h and adjust callers") accidentally introduced 'a' typo in the front of run_test() function, breakpoint_test_arm64.c became not able to be compiled.

Remove the 'a' from arun_test().

Fixes 5821ba969511 ("selftests: Add test plan API to kselftest.h and adjust callers")
Cc Kees Cook <[email protected]>

Argh, apologies! Yes, thank you for catching this.

-Kees

Quoted 18 lines
---
 .../selftests/breakpoints/breakpoint_test_arm64.c  |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/breakpoints/breakpoint_test_arm64.c +1 -1
index 58ed5eeab709..ad41ea69001b 100644
@@ -109,7 +109,7 @@ static bool set_watchpoint(pid_t pid, int size, int wp)
 	return false;
 }
 
-static bool arun_test(int wr_size, int wp_size, int wr, int wp)
+static bool run_test(int wr_size, int wp_size, int wr, int wp)
 {
 	int status;
 	siginfo_t siginfo;
Signature · 1 line
Kees Cook