Skip to content

Commit 26acf40

Browse files
acmelIngo Molnar
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 <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent b11f724 commit 26acf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)