mirror of
https://abf.rosa.ru/djam/kernel-5.10.git
synced 2025-02-25 09:42:49 +00:00

EINVAL is used in other branches as well. Without errno.h, it ends up undefined and the build fails. This happens with 32-bit ROSA kernels, for example.
19 lines
633 B
Diff
19 lines
633 B
Diff
perf/unwind: include errno.h unconditionally
|
|
|
|
EINVAL is used in other branches as well. Without errno.h, it ends up
|
|
undefined and the build fails. This happens with 32-bit ROSA kernels, for
|
|
example.
|
|
|
|
diff --git a/tools/perf/arch/x86/util/unwind-libunwind.c b/tools/perf/arch/x86/util/unwind-libunwind.c
|
|
index 4f16661cbdbb..597588c8c7e6 100644
|
|
--- a/tools/perf/arch/x86/util/unwind-libunwind.c
|
|
+++ b/tools/perf/arch/x86/util/unwind-libunwind.c
|
|
@@ -1,6 +1,7 @@
|
|
|
|
+#include <errno.h> /* for EINVAL */
|
|
+
|
|
#ifndef REMOTE_UNWIND_LIBUNWIND
|
|
-#include <errno.h>
|
|
#include <libunwind.h>
|
|
#include "perf_regs.h"
|
|
#include "../../util/unwind.h"
|