[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200402134128.14493-2-james.clark@arm.com>
Date: Thu, 2 Apr 2020 14:41:28 +0100
From: James Clark <james.clark@....com>
To: arnaldo.melo@...il.com, shikemeng@...wei.com
Cc: linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
James Clark <james.clark@....com>
Subject: [PATCH 1/1] perf tools: fix compilation on Arm
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@....com>
---
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
Powered by blists - more mailing lists