kernel/tools/perf/util/pstack.c
.. .. @@ -5,16 +5,17 @@ 5 5 * (c) 2010 Arnaldo Carvalho de Melo <acme@redhat.com> 6 6 */ 7 7 8 -#include "util.h"9 8 #include "pstack.h" 10 9 #include "debug.h" 11 10 #include <linux/kernel.h> 11 +#include <linux/zalloc.h>12 12 #include <stdlib.h> 13 +#include <string.h>13 14 14 15 struct pstack { 15 16 unsigned short top; 16 17 unsigned short max_nr_entries; 17 - void *entries[0];18 + void *entries[];18 19 }; 19 20 20 21 struct pstack *pstack__new(unsigned short max_nr_entries)