aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/cpumap.c4
-rw-r--r--tools/perf/util/cpumap.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/cpumap.c b/tools/perf/util/cpumap.c
index c51c29fd0732..70ec8d031f9d 100644
--- a/tools/perf/util/cpumap.c
+++ b/tools/perf/util/cpumap.c
@@ -258,8 +258,8 @@ static int cmp_ids(const void *a, const void *b)
258 return *(int *)a - *(int *)b; 258 return *(int *)a - *(int *)b;
259} 259}
260 260
261static int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res, 261int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
262 int (*f)(struct cpu_map *map, int cpu)) 262 int (*f)(struct cpu_map *map, int cpu))
263{ 263{
264 struct cpu_map *c; 264 struct cpu_map *c;
265 int nr = cpus->nr; 265 int nr = cpus->nr;
diff --git a/tools/perf/util/cpumap.h b/tools/perf/util/cpumap.h
index 8982d538da83..6e36fc35eca6 100644
--- a/tools/perf/util/cpumap.h
+++ b/tools/perf/util/cpumap.h
@@ -87,4 +87,6 @@ static inline int cpu__get_node(int cpu)
87 return cpunode_map[cpu]; 87 return cpunode_map[cpu];
88} 88}
89 89
90int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
91 int (*f)(struct cpu_map *map, int cpu));
90#endif /* __PERF_CPUMAP_H */ 92#endif /* __PERF_CPUMAP_H */