perf tests pmu: Add missing headers
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: e9dacd63a1857b8d72c6f2b231868e0246eee391 Gitweb: https://git.kernel.org/tip/e9dacd63a1857b8d72c6f2b231868e0246eee391 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 29 Jan 2019 12:23:44 +0100 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 6 Feb 2019 10:00:38 -0300
perf tests pmu: Add missing headers
It needs the definitions for PATH_MAX and snprintf, was getting it by luck from headers it included and that are now being sanitized.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/pmu.c | 2 ++ 1 file changed, 2 insertions(+)
tools/perf/tests/pmu.c +2 -0
@@ -4,7 +4,9 @@#include "util.h" #include "tests.h" #include <errno.h> +#include <stdio.h> #include <linux/kernel.h> +#include <linux/limits.h> /* Simulated format definitions. */ static struct test_format {