Skip to contentSkip to conversation

selftests/bpf: Fix errors in btf_write.c

PATCH New [email protected] 1 participant 1 message Jul 17, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 selftests/bpf: Fix errors in btf_write.c

The following checkpatch errors are removed:
ERROR: Bad function definition - void test_btf_add() should probably be void test_btf_add(void)
ERROR: Bad function definition - void test_btf_add_btf() should probably be void test_btf_add_btf(void)
ERROR: Bad function definition - void test_btf_write() should probably be void test_btf_write(void)

---
 tools/testing/selftests/bpf/prog_tests/btf_write.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/testing/selftests/bpf/prog_tests/btf_write.c +3 -3
index 6e36de1302fc..209a230ffeec 100644
@@ -352,7 +352,7 @@ static void gen_btf(struct btf *btf)
              "\t'v1' val=18446744073709551615", "raw_dump");
 }
 
-static void test_btf_add()
+static void test_btf_add(void)
 {
     struct btf *btf;
 
@@ -401,7 +401,7 @@ static void test_btf_add()
     btf__free(btf);
 }
 
-static void test_btf_add_btf()
+static void test_btf_add_btf(void)
 {
     struct btf *btf1 = NULL, *btf2 = NULL;
     int id;
@@ -497,7 +497,7 @@ static void test_btf_add_btf()
     btf__free(btf2);
 }
 
-void test_btf_write()
+void test_btf_write(void)
 {
     if (test__start_subtest("btf_add"))
         test_btf_add();