perf tools: Fix calloc() arguments to address error introduced in gcc-14
[linux-block.git] / tools / perf / builtin-c2c.c
index a4cf9de7a7b5a9d6ae416f1a65f6a5c47c6e2e4f..f78eea9e21539352e96c68f37c4b0001c84054e4 100644 (file)
@@ -2320,7 +2320,7 @@ static int setup_nodes(struct perf_session *session)
                nodes[node] = set;
 
                /* empty node, skip */
-               if (perf_cpu_map__empty(map))
+               if (perf_cpu_map__has_any_cpu_or_is_empty(map))
                        continue;
 
                perf_cpu_map__for_each_cpu(cpu, idx, map) {