hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/perf/util/pstack.c
....@@ -5,16 +5,17 @@
55 * (c) 2010 Arnaldo Carvalho de Melo <acme@redhat.com>
66 */
77
8
-#include "util.h"
98 #include "pstack.h"
109 #include "debug.h"
1110 #include <linux/kernel.h>
11
+#include <linux/zalloc.h>
1212 #include <stdlib.h>
13
+#include <string.h>
1314
1415 struct pstack {
1516 unsigned short top;
1617 unsigned short max_nr_entries;
17
- void *entries[0];
18
+ void *entries[];
1819 };
1920
2021 struct pstack *pstack__new(unsigned short max_nr_entries)