perf test: Fix a compile error on pe-file-parsing.c
[platform/kernel/linux-starfive.git] / tools / perf / tests / pe-file-parsing.c
index c09a9fa..fff58b2 100644 (file)
@@ -34,6 +34,7 @@ static int run_dir(const char *d)
        struct dso *dso;
        struct symbol *sym;
        int ret;
+       size_t idx;
 
        scnprintf(filename, PATH_MAX, "%s/pe-file.exe", d);
        ret = filename__read_build_id(filename, &bid);
@@ -61,7 +62,7 @@ static int run_dir(const char *d)
        TEST_ASSERT_VAL("Failed to load symbols", ret == 0);
 
        dso__sort_by_name(dso);
-       sym = dso__find_symbol_by_name(dso, "main");
+       sym = dso__find_symbol_by_name(dso, "main", &idx);
        TEST_ASSERT_VAL("Failed to find main", sym);
        dso__delete(dso);