Received: by 10.192.165.156 with SMTP id m28csp1192091imm; Wed, 11 Apr 2018 14:15:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Fk6mFgAtYWD+NBF19bLR2aYTec23WYIik9b0XvUqg7HJCEfi+VwAzmPADUh2IPuKbIM/D X-Received: by 10.99.114.86 with SMTP id c22mr4526955pgn.72.1523481334647; Wed, 11 Apr 2018 14:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523481334; cv=none; d=google.com; s=arc-20160816; b=0a+WkJzuGrjvXO+hVO4FI/5gRHhhqtAKOzcmAT6ox8GOLr33yZmpij6S26j3kgIHIG aAR0O+4PcwkRdrbTdLeC5am5ZWUYz07qYumrT2IscNytqQaxmuHLk+nKCqbCD62JbGdr 7EQKI5X+yzgW6oqc/AAlWjLjIxCreiMmhxm0L1MSFGThOfxZLBODmJpxqa5/HwFc8CCg OOkcFnmKIiNhaMzOOuzyazh4mTEkyV6wTOHZrDT+nhaIz65JCXrTNyR6qYV2vY83DxTg UiHJcDwZCad9gFFextRtnra9srRkW5vdu1ks2XzvjTHeRek8aPg1c0Dx7PBKKWMPMUwO 0Vbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from:arc-authentication-results; bh=Nag3PRnWir7rNUij/dijaw4/q0CqeXXwfv1aqSOzLrI=; b=EFYHyaASZ1KwH6kIQckMXiz5JKIIGjzX6uWqFdHKXWTc8Nz77In49IXp7b39EAbhb4 W+5ZBaHKYGbKgUa466P4WQXFKUk2EILMeatjDBCEVKhjX3LxBgz3LNPaD6dYwPpQvfKM hkeswc9HGKKC7xz0OHx+4UMiiupBo7tKv12WNPYCP0u1PVbtCKQXKVtkJKiwFCplSxfy v8sjku5ucwA1EOQSYK8IB1XIUbo25l20xPeVl5iAZX4FHtuhjHP7hz8bL0c5jdZB49/o 7U3OSjBEmbnBwpqD+f7QReJD9tM2WaQ2UNla3RBqlFIUkNSV1TaAB2S5CTwgF8yyFmVl hIaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14-v6si1915366pln.526.2018.04.11.14.14.57; Wed, 11 Apr 2018 14:15:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755608AbeDKVJC (ORCPT + 99 others); Wed, 11 Apr 2018 17:09:02 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48170 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754958AbeDKSmC (ORCPT ); Wed, 11 Apr 2018 14:42:02 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3BIecH3003821 for ; Wed, 11 Apr 2018 14:42:01 -0400 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h9m3q203q-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 11 Apr 2018 14:42:01 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Apr 2018 14:42:00 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 11 Apr 2018 14:41:55 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3BIfsuN52559994; Wed, 11 Apr 2018 18:41:54 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4409CAC03F; Wed, 11 Apr 2018 14:43:18 -0400 (EDT) Received: from kermit-br-ibm-com.ibmmodules.com (unknown [9.85.153.108]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id 56797AC03A; Wed, 11 Apr 2018 14:43:14 -0400 (EDT) From: Murilo Opsfelder Araujo To: linux-kernel@vger.kernel.org Cc: Murilo Opsfelder Araujo , 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 Subject: [PATCH] perf session: Fix undeclared 'oe' Date: Wed, 11 Apr 2018 15:41:35 -0300 X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18041118-0056-0000-0000-0000043B1269 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008838; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000256; SDB=6.01016456; UDB=6.00518362; IPR=6.00795704; MB=3.00020523; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-11 18:41:59 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041118-0057-0000-0000-0000087D2E01 Message-Id: <20180411184135.27664-1-muriloo@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-11_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804110172 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/perf/util/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index dc3d3b1b813e..c2d4a7ec40df 100644 --- 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; -- 2.14.3