[lkml]   [2017]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[tip:perf/core] perf unwind arm64: Add missing errno.h header
Commit-ID:  4c38c8f5d2c8c48dcf502cd039f30cb1f82fe63c
Author: Arnaldo Carvalho de Melo <>
AuthorDate: Wed, 19 Apr 2017 12:49:58 -0300
Committer: Arnaldo Carvalho de Melo <>
CommitDate: Wed, 19 Apr 2017 13:01:41 -0300

perf unwind arm64: Add missing errno.h header

Since it uses EINVAL unconditionally, it needs to also unconditionally
include errno.h.

Detected when recent changes made errno.h not be included by chance when
tools/perf/arch/arm64/util/unwind-libunwind.c gets included by

Putting this changeset just before that change so that we don't lose
bisectability on arm64.

Cc: Adrian Hunter <>
Cc: David Ahern <>
Cc: Jean Pihet <>
Cc: Jiri Olsa <>
Cc: Namhyung Kim <>
Cc: Wang Nan <>
Fixes: 8ab596afb97b ("perf tools ARM64: Wire up perf_regs and unwind support")
Signed-off-by: Arnaldo Carvalho de Melo <>
tools/perf/arch/arm64/util/unwind-libunwind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/arch/arm64/util/unwind-libunwind.c b/tools/perf/arch/arm64/util/unwind-libunwind.c
index c116b71..b415dfd 100644
--- a/tools/perf/arch/arm64/util/unwind-libunwind.c
+++ b/tools/perf/arch/arm64/util/unwind-libunwind.c
@@ -1,6 +1,6 @@
+#include <errno.h>

-#include <errno.h>
#include <libunwind.h>
#include "perf_regs.h"
#include "../../util/unwind.h"
 \ /
  Last update: 2017-04-20 13:05    [W:0.018 / U:8.576 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site