Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5205102pxb; Tue, 28 Sep 2021 12:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlRGU+0mGoGXljsR65UTvAc2pVNHy4A45WYmZway35KzU22nYE7AjkZer3t7XX+qFIlz+x X-Received: by 2002:a17:906:3e81:: with SMTP id a1mr8771078ejj.482.1632858883845; Tue, 28 Sep 2021 12:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632858883; cv=none; d=google.com; s=arc-20160816; b=Kck4owwFPEamFTBXFfKfVXiVPjrORoFk+DJTNugEPt7YtjQO0Ha2cg7duRhIm1OAJU fBgKMntsUoamhERUpzYZYExvrhFdJHcuPmf7m/y5IN8bSXuOgUcQGU0YBNbgkejm6ucq 3bRpvRpnevhpKDMxnF/tSJMUdIXOZ8Q8Bg2rUbb7X+D1rre0V58DQEiPglY4Hior+p43 m7nuNNZNKFRCdDaDdmZNY5BzTD3mguR1bc1iPHpKaPGo7h0PkTtLO2jHebbX2zCGAh5w NEqfbdZ4OH10253uTRmGhZy2cogJmc5zzR3gLdtp057K7q/0AVcrYFyjuwBmCyAkYIsW QHgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b5Pr+HGo0VsJRt4BRSo/Ay3yDNn7rHBhRVyf1dECUj4=; b=yHdf1/K8KvTsKaUQGzbLwbsDjT7nuVEgXwqGiQQfYEuScmtIsXRciUY/QH+xYqETCR 3T0xxsjHDzw/JVFfysvpCuZVZPLhnfdwShOliG59eWYFVEIrzNEWXJ1srQYUlCpwAjP2 kjTjvBPxIKPnph83xe47cvUoaqq6gsYjGs+znA5ChvecCZCdxvEBO7vTbp3z58XjOnyg gTF58+8UQsU0FMtCLoio2c7OpRj4UScm/4065oFWFIdaXOEiFD7TtiO68br0vx1/cydu zjXDqW0BgqjZbIra82PLpkhltTJYo/KeOd2Lsw7bc3FKuUm1A3x1hUgK3lAi/ZDpAUe3 prXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fg9zJGEC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si22068945ejj.578.2021.09.28.12.54.17; Tue, 28 Sep 2021 12:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fg9zJGEC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242534AbhI1Tyj (ORCPT + 99 others); Tue, 28 Sep 2021 15:54:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:40284 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242529AbhI1Tyh (ORCPT ); Tue, 28 Sep 2021 15:54:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632858777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b5Pr+HGo0VsJRt4BRSo/Ay3yDNn7rHBhRVyf1dECUj4=; b=fg9zJGECiRrDF9Qne7VET7uNcebb+MusuhWsZwx8iBoyGjsubmoNp6F4h9uXOZ1XpY3nAO fsG1Q6I77tTGDyRZNbolOESGSoBHHI7uno0OX+9G78LyAnI/F+hmfOC0ttoHC8z7OZi83U eqpFvEwx+t9Gt6cQLw1VGd7az8I32rY= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-183-AZwxMExiOiqGiHDDwIy9Jw-1; Tue, 28 Sep 2021 15:52:56 -0400 X-MC-Unique: AZwxMExiOiqGiHDDwIy9Jw-1 Received: by mail-ed1-f72.google.com with SMTP id e21-20020a50a695000000b003daa0f84db2so529970edc.23 for ; Tue, 28 Sep 2021 12:52:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b5Pr+HGo0VsJRt4BRSo/Ay3yDNn7rHBhRVyf1dECUj4=; b=R42anhzeMsWy5G/pmyoTaectTXP7Q7vZ9wIFfBasYLxEcjymj2T6TwZ37/G8rpNHID zmKUHQlSM3WO+1G92IglhcgdSlLAIxDO6l5uPQFrmZX15JGxgbBs3+hTzhc7+RK1EFqL b+gpkNVySWqT9sYTWYCGGUENvwigmeesE/B8aBOJD7e+IhSy4wAsjpWGGWSwOLd+HTIE +CdXMssTAMyO+6pbOinUqf2Ure3BuRW1unBKJe5eS34T8qRzUhZToApGpjbjlCie5ibX evuOjpLAx5Di0K6Dr53UKHp7gDbhc06Vdlo69LUZ0g5B29Qaqwot4iX5j4sCwl7SWmGE yK7A== X-Gm-Message-State: AOAM532zlmiFUb4JxvEYb1yIBvqMKvmkDWnXErfwAwUoHgbdfuQzbfMJ Ct5VeDWW6c3Kf396ehYMnlBI/1Cubze+INXFIschj8GbyYWYQ1PA4edS2bMomwmOecXVto04vCP 00UWh/sDtTFYWHWdiJYGLT0lS X-Received: by 2002:a50:e004:: with SMTP id e4mr9787451edl.246.1632858774918; Tue, 28 Sep 2021 12:52:54 -0700 (PDT) X-Received: by 2002:a50:e004:: with SMTP id e4mr9787434edl.246.1632858774710; Tue, 28 Sep 2021 12:52:54 -0700 (PDT) Received: from krava.cust.in.nbox.cz ([83.240.63.48]) by smtp.gmail.com with ESMTPSA id i4sm31036edt.29.2021.09.28.12.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 12:52:54 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Mark Wielaard , Sukadev Bhattiprolu , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , linux-perf-users@vger.kernel.org Subject: [PATCH] perf tools: Fix compilation on powerpc Date: Tue, 28 Sep 2021 21:52:53 +0200 Message-Id: <20210928195253.1267023-1-jolsa@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Got following build fail on powerpc: CC arch/powerpc/util/skip-callchain-idx.o In function ‘check_return_reg’, inlined from ‘check_return_addr’ at arch/powerpc/util/skip-callchain-idx.c:213:7, inlined from ‘arch_skip_callchain_idx’ at arch/powerpc/util/skip-callchain-idx.c:265:7: arch/powerpc/util/skip-callchain-idx.c:54:18: error: ‘dwarf_frame_register’ accessing 96 bytes \ in a region of size 64 [-Werror=stringop-overflow=] 54 | result = dwarf_frame_register(frame, ra_regno, ops_mem, &ops, &nops); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/util/skip-callchain-idx.c: In function ‘arch_skip_callchain_idx’: arch/powerpc/util/skip-callchain-idx.c:54:18: note: referencing argument 3 of type ‘Dwarf_Op *’ In file included from /usr/include/elfutils/libdwfl.h:32, from arch/powerpc/util/skip-callchain-idx.c:10: /usr/include/elfutils/libdw.h:1069:12: note: in a call to function ‘dwarf_frame_register’ 1069 | extern int dwarf_frame_register (Dwarf_Frame *frame, int regno, | ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors The dwarf_frame_register args changed with [1], Updating ops_mem accordingly. [1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=5621fe5443da23112170235dd5cac161e5c75e65 Cc: Mark Wielaard Cc: Sukadev Bhattiprolu Signed-off-by: Jiri Olsa --- tools/perf/arch/powerpc/util/skip-callchain-idx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/arch/powerpc/util/skip-callchain-idx.c b/tools/perf/arch/powerpc/util/skip-callchain-idx.c index 3018a054526a..20cd6244863b 100644 --- a/tools/perf/arch/powerpc/util/skip-callchain-idx.c +++ b/tools/perf/arch/powerpc/util/skip-callchain-idx.c @@ -45,7 +45,7 @@ static const Dwfl_Callbacks offline_callbacks = { */ static int check_return_reg(int ra_regno, Dwarf_Frame *frame) { - Dwarf_Op ops_mem[2]; + Dwarf_Op ops_mem[3]; Dwarf_Op dummy; Dwarf_Op *ops = &dummy; size_t nops; -- 2.31.1