2020-10-29 01:01:22

by John B. Wyatt IV

[permalink] [raw]
Subject: [PATCH 2/8] sched: Fix bad function definition

main() should have a void.

Issue reported by checkpatch.

Signed-off-by: John B. Wyatt IV <[email protected]>
---
tools/testing/selftests/sched/test_coresched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/sched/test_coresched.c b/tools/testing/selftests/sched/test_coresched.c
index 2fdefb843115..91cfb00f15b5 100644
--- a/tools/testing/selftests/sched/test_coresched.c
+++ b/tools/testing/selftests/sched/test_coresched.c
@@ -826,7 +826,7 @@ static void test_prctl_in_group(char *root)
print_pass();
}

-int main() {
+int main(void) {
char *root = make_group(NULL, NULL);

test_cgroup_parent_tag_child_inherit(root);
--
2.28.0