diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-25 23:32:19 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-27 22:37:26 +0300 |
commit | 6bc13cab5798bd9b049694983ae5702666d24e83 (patch) | |
tree | def57c5bae4b9844b2fd2e5921f38e011a200251 /tools/perf/arch | |
parent | 743ef218c2fbe63502615a2044977041ee068322 (diff) | |
download | linux-6bc13cab5798bd9b049694983ae5702666d24e83.tar.xz |
perf arch x86: Add missing stdlib.h to get free() prototype
It was getting indirectly, out of luck, add it.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch')
-rw-r--r-- | tools/perf/arch/x86/util/event.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/tsc.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/util/event.c b/tools/perf/arch/x86/util/event.c index e670f3547581..55ff6aec10fd 100644 --- a/tools/perf/arch/x86/util/event.c +++ b/tools/perf/arch/x86/util/event.c @@ -2,6 +2,7 @@ #include <linux/types.h> #include <linux/string.h> #include <linux/zalloc.h> +#include <stdlib.h> #include "../../../util/event.h" #include "../../../util/synthetic-events.h" diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c index eb2b5195bd02..9b99f48b923c 100644 --- a/tools/perf/arch/x86/util/tsc.c +++ b/tools/perf/arch/x86/util/tsc.c @@ -2,6 +2,7 @@ #include <linux/types.h> #include <math.h> #include <string.h> +#include <stdlib.h> #include "../../../util/debug.h" #include "../../../util/tsc.h" |