Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp608265imw; Thu, 14 Jul 2022 07:34:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u9aoBohosryNUMdwwT6pknnVmcC/W6X3q+rVTMO420sy6JBy1nsN+xrUqXVrZKDS/TqCOJ X-Received: by 2002:a17:906:8a4d:b0:72b:6b8d:3779 with SMTP id gx13-20020a1709068a4d00b0072b6b8d3779mr9138645ejc.759.1657809241788; Thu, 14 Jul 2022 07:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657809241; cv=none; d=google.com; s=arc-20160816; b=x+Phm5E05llB+KjIagaBK6t80ChkgU5IL3UTislVvGo3CJxAUPATXHbaZonyIcKwBm Q6hercXEfhZh4xWkHmtk6mbxJjB6l65mdFMTXreDp2M/nVbYELl95UixLz5XTwUrz+QE 9wzHzVjiNglYXvstz0UtVYRgFEOot5TJaDjmUn+gg+FGZb8jI11B4z/Vh/IhQM62EEgl CG6SMtI4cEZ2fEdPdr5lc2FgrXX7uWBD9Thfb83JMRDcUCObIP8SmYZ858xYasQo6BXg PmZp1/BY1e5HKJU5X7D3P/EOOMlg6EqytcqlNiiv8QLqLNXwykEvMYCPA1FQu998mj8Y Gh+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=kSmdBszbI/mwe/hbvDE5ajHGq11BwNYPBsjYBaJn3Tk=; b=CyrpA1aZC4WEJccHo/FlyO86EFNHLF1S3wgktrZeREbogPrM/qJPlr5PgMyZTdYsVs EUity3SOsVfLcppLGjSyEcdxwCQPaY6hxZQIGCHeZ7q1eptMnLfIWLU4yyko/Apq4egg wK8x8Btus5Q2W+Zx9QrPijpLK73FI/bt5yJzqgXU+rsyu3Fh1dhw1AUU1Tfe/qSNkJs0 iKiduOtxXMMEgr2dsj/6gCJnqWTKKJcdl17QGNX4mvKkmHc8znmaN8fC3z7G2AxP/m+B cfEt6Mk5GTFBFWzEJPO+Ti+PoswRAKvwNKnOV1HOAAddKA6k/ttjP6b5uyqgTH65yszW gjEQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a170906374100b0072b64ce28b4si1930939ejc.394.2022.07.14.07.33.35; Thu, 14 Jul 2022 07:34:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239258AbiGNOK0 (ORCPT + 99 others); Thu, 14 Jul 2022 10:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbiGNOKT (ORCPT ); Thu, 14 Jul 2022 10:10:19 -0400 X-Greylist: delayed 2660 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 14 Jul 2022 07:10:18 PDT Received: from maynard.decadent.org.uk (maynard.decadent.org.uk [95.217.213.242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 335654A81C; Thu, 14 Jul 2022 07:10:18 -0700 (PDT) Received: from [91.187.115.177] (helo=deadeye) by maynard with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oByqp-0000X2-IP; Thu, 14 Jul 2022 15:25:55 +0200 Received: from ben by deadeye with local (Exim 4.96) (envelope-from ) id 1oByqn-004wFW-2Z; Thu, 14 Jul 2022 15:25:53 +0200 Message-ID: <5afd3b45e9b95fa5023790c24f8a1b0b4ce1ca7c.camel@decadent.org.uk> Subject: Re: [PATCH v2 0/5] tools: fix compilation failure caused by init_disassemble_info API changes From: Ben Hutchings To: sedat.dilek@gmail.com, Andres Freund Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Arnaldo Carvalho de Melo , Jiri Olsa , Quentin Monnet Date: Thu, 14 Jul 2022 15:25:44 +0200 In-Reply-To: References: <20220622231624.t63bkmkzphqvh3kx@alap3.anarazel.de> <20220703212551.1114923-1-andres@anarazel.de> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-OgXkSgMMXMfCDQQ6En6D" User-Agent: Evolution 3.44.2-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 91.187.115.177 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on maynard); SAEximRunCond expanded to false X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --=-OgXkSgMMXMfCDQQ6En6D Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2022-07-14 at 11:16 +0200, Sedat Dilek wrote: > On Sun, Jul 3, 2022 at 11:25 PM Andres Freund wrote: > >=20 > > binutils changed the signature of init_disassemble_info(), which now ca= uses > > compilation failures for tools/{perf,bpf} on e.g. debian unstable. Rele= vant > > binutils commit: > > https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D60a3da0= 0bd5407f07 > >=20 > > I first fixed this without introducing the compat header, as suggested = by > > Quentin, but I thought the amount of repeated boilerplate was a bit too > > much. So instead I introduced a compat header to wrap the API changes. = Even > > tools/bpf/bpftool/jit_disasm.c, which needs its own callbacks for json,= imo > > looks nicer this way. > >=20 > > I'm not regular contributor, so it very well might be my procedures are= a > > bit off... > >=20 > > I am not sure I added the right [number of] people to CC? > >=20 > > WRT the feature test: Not sure what the point of the -DPACKAGE=3D'"perf= "' is, > > nor why tools/perf/Makefile.config sets some LDFLAGS/CFLAGS that are al= so > > in feature/Makefile and why -ldl isn't needed in the other places. But.= .. > >=20 > > V2: > > - split patches further, so that tools/bpf and tools/perf part are enti= rely > > separate > > - included a bit more information about tests I did in commit messages > > - add a maybe_unused to fprintf_json_styled's style argument > >=20 >=20 > [ CC Ben ] >=20 > The Debian kernel-team has integrated your patchset v2. >=20 > In case you build without libbfd support there is [1]. > So, feel free to take this for v3. >=20 > -Sedat- >=20 > [1] https://salsa.debian.org/kernel-team/linux/-/blob/sid/debian/patches/= bugfix/all/tools-perf-fix-build-without-libbfd.patch [...] Thanks, I meant to send that fix upstream but got distracted. It should really be folded into "tools perf: Fix compilation error with new binutils". Ben. >=20 --=20 Ben Hutchings Always try to do things in chronological order; it's less confusing that way. --=-OgXkSgMMXMfCDQQ6En6D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmLQGVgACgkQ57/I7JWG EQnUjBAAk2XI7hNjRozbY7yy+c7k2alNVHWewYw9eUYYJ/2tSIMWsZuerXn0V7iT iUEDDd2CVlSSWiSrUHOHimsNjfsDlUtQ+Ev4pc+D83czOWFibs3n4qfixLsE2MFM dUXatRQVLgYCJzAvEZnsRK1rAMAbwhh6F1lZGPu+qBN10qDbUOIUnzpEcv4KOhb4 yLEG1dLHNTO1L2N11xkG2OyDQTUhZxUetEwvmV7LikaA8zXfEpF2O1DNFVdgw3zI T0TzpQEvxaPgEcGd2PxFH034gNajsq9WkkiTdXBSGAF0XRkgPQP+LKoQKFc7RkGj E01IFeR+DuJVgf6J0YlrQYM23TuJOz4VKVjbbLUFgRqeBC5CQTKvE79jbQSmDZhm 7QPfcOyRMAJ/FeGDuo8gn9S+9iIWJN8lJ+2RXMv0oT2wvyVF7C292mhAUecz5pmy Q/50PBWq3DCDEW8ILlWxqOBI7HeboygjznfEbubJtom13HYCwETUYjxIUdL/duLH 6/MoktNcrC8XXCttBaFdLO9Ylp7z1w2hDB4+6Trz4y8uitQnJP2hNwxuhsb9clYh /fAxsXWPL45QAXMsAQMcWy+ciFaO7nEeTqcWgnj3O29htS72HgOkcdKTtNUp0enI OJrsQpLJlAa/4EbpLjtCPDDmDwrtGhlInE3P7mBhWf3iNuCP7Dk= =ReGY -----END PGP SIGNATURE----- --=-OgXkSgMMXMfCDQQ6En6D--