Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1349877rwr; Thu, 20 Apr 2023 13:42:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZYzD8U7xLjlO3Z1IZ5PIObmd04CWiwTVT1dSek5E2MKPygbjuOHP/lzKMshUT+oFDNNKNR X-Received: by 2002:a05:6a00:2193:b0:62a:63e6:3282 with SMTP id h19-20020a056a00219300b0062a63e63282mr3022760pfi.11.1682023327357; Thu, 20 Apr 2023 13:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682023327; cv=none; d=google.com; s=arc-20160816; b=cI8qpw19Az8XOX+Qpr9zKwueFOdOozg9AXxEuIR5E0ThNr9cLy2EX2l61bdhsiO7ik Dqgh+0nj6N9gSKBVTvbvWL7hQ30spqNKYZmDxOujaHYD6DDJiRigwy5o+t2oqHdt+Z7/ 4/bp3ZsRJlfTGqS5cRC2SFLUOJwojyhv4TLAiHU9Jzql1XySr0SxTPumDN4s4T+5TMLo fNJBeW0Nfj5+WFghU1bTiyIopZ9JnqxYQOF9yRGsOrR4JJ+NJZ4s9ffwUAxJ5OnSLXGs kJ08QTXqoRvMiRriIPdo2KCzgBnQNH5zlu+L2N9tQRWI1Qm29w6WbQmVY2Je/xUAoswc +u3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=H7ELBBlYAp9rO9Iscqt7fxZUAahtXtENLaXXiWtioDA=; b=hwtx2GtiBDtJtYW1JwaQtlP3rkx2OIioOdcu64Y/m0hyLh5UH0Uo/ZGqy7ZkbzLV8l eL6VIPzHQLM0L3/0+QxVEz6tMupd00zk80sA1MNNE1pGF8wgOiwtC2Lz6l5hLbZtwmQw yr4xhTtQAxBANzvweHbCAgEzzXjXGfHUO7dkNlJmsePESkXXbokTdTBNCTWpZzBpq3ct f6mxdUB7Ed6xiVA9ACsKA8LVjkD3UdovOwsONV5oGzovAAojEbJbMx/TU4v3r8Zu/VhZ X20nWjWSufZvGEXeo42yMNzF0V/dilo0MveH12VdmKYWkFrVHlOhdmEhl8Q+Cr7aqNub iXMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=DKqDAwfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 63-20020a630142000000b00520b3928be3si2559721pgb.329.2023.04.20.13.41.54; Thu, 20 Apr 2023 13:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=DKqDAwfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbjDTUei (ORCPT + 99 others); Thu, 20 Apr 2023 16:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbjDTUeY (ORCPT ); Thu, 20 Apr 2023 16:34:24 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABC285259 for ; Thu, 20 Apr 2023 13:34:23 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-3ef31924c64so927801cf.1 for ; Thu, 20 Apr 2023 13:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682022863; x=1684614863; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=H7ELBBlYAp9rO9Iscqt7fxZUAahtXtENLaXXiWtioDA=; b=DKqDAwfBAn+vBoeYYY3K6MIAC02Z/W+xygtPJmTVD4lphx+jPOW/A83SXIPmZm5emZ oAb1jzqCRSoMOTW0dR5dOC9nWvYWrmS6dqqQuGZCBmFot1anSABZnPrdALANUEpy9qQT 4BCCLeft3xxjBTMMrivGgh/fQ4RNMiZgxP/XzWaW+Sffi+E0D93c/o4biJGAm8gUzPdH yLoEDVQ9Kv4gXWrfJnsSenEbM9f8NhVFx1ZmjtaJ/Mjnv6cM7hmNjxKwxgFdGnl4CEcB BNRqhoW/dhvLAeXDdhRMm1/oeTngNpY8gVk4Hv5PU1JBWFHkuodkAONZCcshuSZtmN6d Bxew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682022863; x=1684614863; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H7ELBBlYAp9rO9Iscqt7fxZUAahtXtENLaXXiWtioDA=; b=d08rvlpdz/A6T7LQl4ZOf0xuKBlOyob07onZxqFQUZGZH760p3xBUnSDkfpBx3vJnP PEvOoNdHp/MymP9fd8wzQrCLJ+71ljbt2mdEfI6uJE3SABJ4tYHXfXZPTs5s5jjXtTaX N2wvj05Sm8E0iBr7uhlHikdq+b92QiqUsstbsf+g2HhOVSXxsWHJTKZgk31fuCs2uP49 oKC1oiHF5ebvCrkGgrt+td/QEks/xsuv1PUHhjM/n9uNKxxVm8NiJCksCC8wVQ7jB4/H RNOCENRV8Wj7ZUw8OVsF6d4zzn09sECK4HAH2oTfLwxNGDR+N6Zae5ziBNkMfRnkwhza 6myw== X-Gm-Message-State: AAQBX9fy8Ztjk2pVlfxWt0a0adyVblZ2UOzp1jFazsppcfpwO/AjJCBy MzaPw2El7l+Wp+pRxa71DuXKSwnZfTTxN9D0vailpA== X-Received: by 2002:a05:622a:d5:b0:3e0:c2dd:fd29 with SMTP id p21-20020a05622a00d500b003e0c2ddfd29mr117317qtw.4.1682022862609; Thu, 20 Apr 2023 13:34:22 -0700 (PDT) MIME-Version: 1.0 References: <20230417122943.2155502-1-anders.roxell@linaro.org> <2023041848-basil-plop-145c@gregkh> In-Reply-To: From: Ian Rogers Date: Thu, 20 Apr 2023 13:34:08 -0700 Message-ID: Subject: Re: [backport PATCH 0/2] stable v5.15, v5.10 and v5.4: fix perf build errors To: Anders Roxell Cc: Greg KH , stable@vger.kernel.org, acme@redhat.com, andres@anarazel.de, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 20, 2023 at 11:24=E2=80=AFAM Anders Roxell wrote: > > On Tue, 18 Apr 2023 at 11:04, Greg KH wrote: > > > > On Mon, Apr 17, 2023 at 02:29:41PM +0200, Anders Roxell wrote: > > > Hi, > > > > > > I would like to see these patches backported. They are needed so perf > > > can be cross compiled with gcc on v5.15, v5.10 and v5.4. > > > I built it with tuxmake [1] here are two example commandlines: > > > tuxmake --runtime podman --target-arch arm64 --toolchain gcc-12 --kco= nfig defconfig perf > > > tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-12 --kc= onfig defconfig perf > > > > > > Tried to build perf with both gcc-11 and gcc-12. > > > > > > Patch 'tools perf: Fix compilation error with new binutils' > > > and 'tools build: Add feature test for init_disassemble_info API chan= ges' > > > didn't apply cleanly, thats why I send these in a patchset. > > > > > > When apply 'tools build: Add feature test for > > > init_disassemble_info API changes' to 5.4 it will be a minor merge > > > conflict, do you want me to send this patch in two separate patches o= ne > > > for 5.4 and another for v5.10? > > > > > > The sha for these two patches in mainline are. > > > cfd59ca91467 tools build: Add feature test for init_disassemble_info = API changes > > > 83aa0120487e tools perf: Fix compilation error with new binutils > > > > > > The above patches solves these: > > > util/annotate.c: In function 'symbol__disassemble_bpf': > > > util/annotate.c:1729:9: error: too few arguments to function 'init_di= sassemble_info' > > > 1729 | init_disassemble_info(&info, s, > > > | ^~~~~~~~~~~~~~~~~~~~~ > > > > > > > > > Please apply these to v5.10 and v5.4 > > > a45b3d692623 tools include: add dis-asm-compat.h to handle version di= fferences > > > d08c84e01afa perf sched: Cast PTHREAD_STACK_MIN to int as it may turn= into sysconf(__SC_THREAD_STACK> > > > > > > The above patches solves these: > > > /home/anders/src/kernel/stable-5.10/tools/include/linux/kernel.h:43:2= 4: error: comparison of distinct pointer types lacks a cast [-Werror] > > > 43 | (void) (&_max1 =3D=3D &_max2); \ > > > | ^~ > > > builtin-sched.c:673:34: note: in expansion of macro 'max' > > > 673 | (size_t) max(16 * 1024, PTHREAD_STACK= _MIN)); > > > | ^~~ > > > > > > > > > Please apply these to v5.15, v5.10 and v5.4 > > > 8e8bf60a6754 perf build: Fixup disabling of -Wdeprecated-declarations= for the python scripting engine > > > 4ee3c4da8b1b perf scripting python: Do not build fail on deprecation = warnings > > > 63a4354ae75c perf scripting perl: Ignore some warnings to keep buildi= ng with perl headers > > > > Can you please provide patch series of these upstream commits backporte= d > > to the relevant branchs that you wish to see them in? You have 2 > > patches in this series without git commit ids, and I have no idea where > > to apply them, or not apply them... > > Yes, apologies, I will get that fixed up. > > > > > Or better yet, just use the latest version of perf as was pointed out, > > on these old kernel releases. > > Makes sense, we can do this. Is this the preferred way going forward? Fwiw, it definitely has my vote. Thanks, Ian > Cheers, > Anders