1 |
commit: 2f0984a4ca63a39961bf113bb2b7bdbfe0442ea8 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 5 02:01:53 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 5 02:03:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f0984a4 |
7 |
|
8 |
dev-util/perf: add missing patch for 5.4.7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/704798 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
.../perf/files/perf-5.4.7-propagate-cflags.patch | 44 ++++++++++++++++++++++ |
15 |
1 file changed, 44 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/perf/files/perf-5.4.7-propagate-cflags.patch b/dev-util/perf/files/perf-5.4.7-propagate-cflags.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..b1a9bcc25a1 |
20 |
--- /dev/null |
21 |
+++ b/dev-util/perf/files/perf-5.4.7-propagate-cflags.patch |
22 |
@@ -0,0 +1,44 @@ |
23 |
+From 55542113c690a567e728e40d4181d7d037fc21b0 Mon Sep 17 00:00:00 2001 |
24 |
+From: Jiri Olsa <jolsa@××××××.org> |
25 |
+Date: Fri, 11 Oct 2019 14:21:55 +0200 |
26 |
+Subject: perf tools: Propagate CFLAGS to libperf |
27 |
+ |
28 |
+Andi reported that 'make DEBUG=1' does not propagate to the libbperf |
29 |
+code. It's true also for the other flags. Changing the code to propagate |
30 |
+the global build flags to libperf compilation. |
31 |
+ |
32 |
+Reported-by: Andi Kleen <ak@×××××××××××.com> |
33 |
+Signed-off-by: Jiri Olsa <jolsa@××××××.org> |
34 |
+Cc: Alexander Shishkin <alexander.shishkin@×××××××××××.com> |
35 |
+Cc: Michael Petlan <mpetlan@××××××.com> |
36 |
+Cc: Namhyung Kim <namhyung@××××××.org> |
37 |
+Cc: Peter Zijlstra <peterz@×××××××××.org> |
38 |
+Link: http://lore.kernel.org/lkml/20191011122155.15738-1-jolsa@××××××.org |
39 |
+Signed-off-by: Arnaldo Carvalho de Melo <acme@××××××.com> |
40 |
+--- |
41 |
+ tools/perf/lib/core.c | 3 ++- |
42 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
43 |
+ |
44 |
+(limited to 'tools/perf/lib/core.c') |
45 |
+ |
46 |
+diff --git a/tools/perf/lib/core.c b/tools/perf/lib/core.c |
47 |
+index d0b9ae422b9f..58fc894b76c5 100644 |
48 |
+--- a/tools/perf/lib/core.c |
49 |
++++ b/tools/perf/lib/core.c |
50 |
+@@ -5,11 +5,12 @@ |
51 |
+ #include <stdio.h> |
52 |
+ #include <stdarg.h> |
53 |
+ #include <unistd.h> |
54 |
++#include <linux/compiler.h> |
55 |
+ #include <perf/core.h> |
56 |
+ #include <internal/lib.h> |
57 |
+ #include "internal.h" |
58 |
+ |
59 |
+-static int __base_pr(enum libperf_print_level level, const char *format, |
60 |
++static int __base_pr(enum libperf_print_level level __maybe_unused, const char *format, |
61 |
+ va_list args) |
62 |
+ { |
63 |
+ return vfprintf(stderr, format, args); |
64 |
+-- |
65 |
+cgit 1.2-0.3.lf.el7 |
66 |
+ |