[PATCH 1/1] perf tools: fix compilation on Arm

From: James Clark
Date: Thu Apr 02 2020 - 09:41:43 EST


The commit "perf report: Fix arm64 gap between kernel
start and module end" introduces the following build
error with GCC 7.3.0 on Arm:

"error: implicit declaration of function âstrchrâ"

Adding the required header fixes the issue.

Signed-off-by: James Clark <james.clark@xxxxxxx>
---
tools/perf/arch/arm64/util/machine.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/perf/arch/arm64/util/machine.c b/tools/perf/arch/arm64/util/machine.c
index 94745131e89a..d41b27e781d3 100644
--- a/tools/perf/arch/arm64/util/machine.c
+++ b/tools/perf/arch/arm64/util/machine.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0

#include <stdio.h>
+#include <string.h>
#include "debug.h"
#include "symbol.h"

--
2.17.1