From: Greg Kroah-Hartman Date: Wed, 2 May 2018 20:59:16 +0000 (-0700) Subject: 3.18-stable patches X-Git-Tag: v4.9.99~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03605661024f73d881e438ca76eae1b5be337991;p=thirdparty%2Fkernel%2Fstable-queue.git 3.18-stable patches added patches: perf-session-fix-undeclared-oe.patch --- diff --git a/queue-3.18/perf-session-fix-undeclared-oe.patch b/queue-3.18/perf-session-fix-undeclared-oe.patch new file mode 100644 index 00000000000..138846c9c5e --- /dev/null +++ b/queue-3.18/perf-session-fix-undeclared-oe.patch @@ -0,0 +1,64 @@ +From muriloo@linux.ibm.com Wed May 2 13:50:29 2018 +From: Murilo Opsfelder Araujo +Date: Wed, 2 May 2018 15:50:44 -0300 +Subject: perf session: Fix undeclared 'oe' +To: muriloo@linux.ibm.com +Cc: stable@vger.kernel.org, Alexander Shishkin , Andi Kleen , Arnaldo Carvalho de Melo , David Carrillo-Cisneros , Greg Kroah-Hartman , He Kuang , Ingo Molnar , Jiri Olsa , Masami Hiramatsu , Paul Mackerras , Paul Turner , Peter Zijlstra , Sasha Levin , Simon Que , Stephane Eranian , Wang Nan +Message-ID: <20180502185044.23646-1-muriloo@linux.ibm.com> + +From: Murilo Opsfelder Araujo + +Using linux-3.18.y branch, perf build fails with the following: + + $ make -s -j16 -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=/usr DESTDIR=/tmp/builddir/build all + [...] + util/session.c: In function ‘__perf_session__process_pipe_events’: + util/session.c:1093:36: error: ‘oe’ undeclared (first use in this function) + ordered_events__set_copy_on_queue(oe, true); + ^ + util/session.c:1093:36: note: each undeclared identifier is reported only once for each function it appears in + +This patch fixes it for linux-3.18.y branch. + +Fixes: 95b33b99cdd6 ("perf inject: Copy events when reordering events in pipe mode") +Cc: # 3.18.x +Cc: Alexander Shishkin +Cc: Andi Kleen +Cc: Arnaldo Carvalho de Melo +Cc: David Carrillo-Cisneros +Cc: Greg Kroah-Hartman +Cc: He Kuang +Cc: Ingo Molnar +Cc: Jiri Olsa +Cc: Masami Hiramatsu +Cc: Paul Mackerras +Cc: Paul Turner +Cc: Peter Zijlstra +Cc: Sasha Levin +Cc: Simon Que +Cc: Stephane Eranian +Cc: Wang Nan +Signed-off-by: Murilo Opsfelder Araujo +Signed-off-by: Greg Kroah-Hartman +--- +Hi, Greg. + +Perf build on linux-3.18.y is broken since v3.18.101 (v3.18.100 worked just +fine). This fixes it. + +Changes since v2: + - rebased on v3.18.108 + + tools/perf/util/session.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/tools/perf/util/session.c ++++ b/tools/perf/util/session.c +@@ -1073,6 +1073,7 @@ volatile int session_done; + static int __perf_session__process_pipe_events(struct perf_session *session, + struct perf_tool *tool) + { ++ struct ordered_events *oe = &session->ordered_events; + int fd = perf_data_file__fd(session->file); + union perf_event *event; + uint32_t size, cur_size = 0; diff --git a/queue-3.18/series b/queue-3.18/series index 9326b1a4f36..e9234df5816 100644 --- a/queue-3.18/series +++ b/queue-3.18/series @@ -185,3 +185,4 @@ scsi-lpfc-fix-frequency-of-release-wqe-cqes.patch regulator-of-add-a-missing-of_node_put-in-an-error-handling-path-of-of_regulator_match.patch asoc-samsung-i2s-ensure-the-rclk-rate-is-properly-determined.patch kdb-make-mdr-command-repeat.patch +perf-session-fix-undeclared-oe.patch