]> Git Repo - linux.git/commitdiff
perf unwind: Fix libunwind build failure on i386 systems
authorArnaldo Carvalho de Melo <[email protected]>
Thu, 26 Sep 2019 17:36:48 +0000 (14:36 -0300)
committerIngo Molnar <[email protected]>
Thu, 26 Sep 2019 19:59:38 +0000 (21:59 +0200)
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]>
tools/perf/arch/x86/util/unwind-libunwind.c

index 05920e3edf7a7a060f259ff9086d342ab4c39271..47357973b55b208334b651120bd5a832d50861e3 100644 (file)
@@ -1,11 +1,11 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include <errno.h>
+#include "../../util/debug.h"
 #ifndef REMOTE_UNWIND_LIBUNWIND
 #include <libunwind.h>
 #include "perf_regs.h"
 #include "../../util/unwind.h"
-#include "../../util/debug.h"
 #endif
 
 #ifdef HAVE_ARCH_X86_64_SUPPORT
This page took 0.057228 seconds and 4 git commands to generate.