Skip to content

Commit 26acf40

Browse files
acmelingomolnar
authored andcommitted
perf unwind: Fix libunwind build failure on i386 systems
Naresh Kamboju reported, that on the i386 build pr_err() doesn't get defined properly due to header ordering: perf-in.o: In function `libunwind__x86_reg_id': tools/perf/util/libunwind/../../arch/x86/util/unwind-libunwind.c:109: undefined reference to `pr_err' Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent b11f724 commit 26acf40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/perf/arch/x86/util/unwind-libunwind.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// SPDX-License-Identifier: GPL-2.0
22

33
#include <errno.h>
4+
#include "../../util/debug.h"
45
#ifndef REMOTE_UNWIND_LIBUNWIND
56
#include <libunwind.h>
67
#include "perf_regs.h"
78
#include "../../util/unwind.h"
8-
#include "../../util/debug.h"
99
#endif
1010

1111
#ifdef HAVE_ARCH_X86_64_SUPPORT

0 commit comments

Comments
 (0)