Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp50252rwl; Thu, 6 Apr 2023 14:35:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTSnk+cUyEMNjVw/h9htjxFaJyAr4kvnUccQAtFBTDQQxZVBU+ClVbghRNforLSFsimYUC X-Received: by 2002:a05:6a20:63a6:b0:d4:c605:4512 with SMTP id m38-20020a056a2063a600b000d4c6054512mr689306pzg.30.1680816904469; Thu, 06 Apr 2023 14:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680816904; cv=none; d=google.com; s=arc-20160816; b=PS/BWaYucGKJaLtBTfdkVOcYbDvz2AoWTL9eSp12vB48IsbzW0a1PHdnhX33gaT/yd Tf+xTgVkjl7c7KsnknHXJL+NHHZfrHCOSf7zorSzFD4MCRCarBccEFbJ8pmrqTnejMw6 jicK0cmb9c42ds3mYVusvYrn0z7lqzdL4u4VIwVUF4g0mS3u6vTy7/laFxGgp5IPpOPz V5i+IaQfV7rm0XK5G7kPY9E/I0Dfy1TrKD3J1DLJC5MWHO9jekiLxXOlDIfzqK8YQLS7 BlD9D1ZuYbDt/Fq5l2gyqoyrW3O5hfvXrpZxDq2coXaUAOWFdPpm/PGaCwFo8lOIIQt/ 2YVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Bri8M/mdM/ICuQqYOdLxxENvxx9Xw1+P+gkd18iDMrk=; b=Jxl6ILIN286sZO8s1P1UpoCQk22L4Hr6YAHNQxIfec20qUNDAlcReBYVZotGtpbF2S BXq/aPnfVhT1kan6Sq8zbBLpE5Hp3eGDUUmkSXkNezmMTKkwDnrao6BR/QBIhq0GltTF 1/BkKOQZnGX2HwG9kdbyD9cWu61cnoONuZSB4GxnTycsAuZCsEkANmnTQm2IDKbZGl0s /ex/u9O1UHO+TGcWhRTbUB/juQDJaYUNg5aX8++bnAlRZ5JCL7cC6PtZfoQdHPNBBrYT HJH7vS2eaLCLgaWZtqOFXGTqVpPZdjFodm80RPgffKXvegNrM2bzyXVVNYZMVoPoXSBa LqAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qppF1q6r; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a185-20020a6390c2000000b00513577931c1si2171680pge.306.2023.04.06.14.34.51; Thu, 06 Apr 2023 14:35:04 -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=@kernel.org header.s=k20201202 header.b=qppF1q6r; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232901AbjDFVcv (ORCPT + 99 others); Thu, 6 Apr 2023 17:32:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbjDFVcq (ORCPT ); Thu, 6 Apr 2023 17:32:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F387E6592; Thu, 6 Apr 2023 14:32:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C7AE64747; Thu, 6 Apr 2023 21:32:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7EDCC433EF; Thu, 6 Apr 2023 21:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680816764; bh=JWuq+EziBNQxuwPJXYAtOnOgUwjkYUyWSc39WtNgEFw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qppF1q6r9aR6HLEsvTcAlCsgprvWP519wYwjKuG2GWbxGMFLRj/7zy92kPTDl2gRO kwxHtOxjdlpXSobYFijhv8VmzYeImgbfYyCTW0RkKwOC+Ue1oHwn4heNGTF+qlWDDE aOjR0Z3rOSNyd7X4UbS6fBw04g0DAWkeEKUBB4mpbDo/+8isblmNqWGzrTZRj8gxH7 Qi/zs4eXhzQn5AM9pyOnuv1hYQuVNmKKyt54uRZxJc4kzHWwq3hrVf9F/W9HwyhTUl GD6TQoL7rlCIz9bzPo4rXA4ldJQ20u1igcDIoPAJm0lVvieehpeBjsolMZPzLBRM1x EMaqZ9YAbin2w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 5A0E74052D; Thu, 6 Apr 2023 18:32:42 -0300 (-03) Date: Thu, 6 Apr 2023 18:32:42 -0300 From: Arnaldo Carvalho de Melo To: "Liam R. Howlett" Cc: Miguel Ojeda , "linux-perf-users@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "llvm@lists.linux.dev" , "linux-sparse@vger.kernel.org" , Peter Zijlstra , Ingo Molnar , Mark Rutland , Miguel Ojeda , Rasmus Villemoes , Arnaldo Carvalho de Melo , Nathan Chancellor , Nick Desaulniers , Tom Rix Subject: Re: [PATCH] tools: Rename __fallthrough to fallthrough Message-ID: References: <20221125154947.2163498-1-Liam.Howlett@oracle.com> <20230406195830.ieiozetmk7qjllol@revolver> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Em Thu, Apr 06, 2023 at 06:31:32PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Apr 06, 2023 at 06:11:03PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, Apr 06, 2023 at 10:02:57PM +0200, Miguel Ojeda escreveu: > > > On Thu, Apr 6, 2023 at 9:58 PM Liam R. Howlett wrote: > > > > > > > > Any chance of this being accepted? I'm looking to use this in the radix > > > > test suite and would rather not duplicate code. > > > > > > That would be up to the `tools/perf/` maintainers. > > > > Thanks, applied, > > So, I noticed some missing conversions, fixed that, but then when trying > to test build it with: > > make -C tools/perf build-test > > I stumbled on this: > > make_with_gtk2: cd . && make GTK2=1 -j32 DESTDIR=/tmp/tmp.5AP8tPJgiT > cd . && make GTK2=1 -j32 DESTDIR=/tmp/tmp.5AP8tPJgiT > BUILD: Doing 'make -j32' parallel build > HOSTCC fixdep.o > HOSTLD fixdep-in.o > > CC trace/beauty/ioctl.o > In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9, > from /usr/include/glib-2.0/glib/gtypes.h:34, > from /usr/include/glib-2.0/glib/galloca.h:34, > from /usr/include/glib-2.0/glib.h:32, > from /usr/include/glib-2.0/gobject/gbinding.h:30, > from /usr/include/glib-2.0/glib-object.h:24, > from /usr/include/glib-2.0/gio/gioenums.h:30, > from /usr/include/glib-2.0/gio/giotypes.h:30, > from /usr/include/glib-2.0/gio/gio.h:28, > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, > from /usr/include/gtk-2.0/gdk/gdk.h:32, > from /usr/include/gtk-2.0/gtk/gtk.h:32, > from ui/gtk/gtk.h:8, > from ui/gtk/helpline.c:6: > /usr/include/glib-2.0/glib/gmacros.h:637:28: error: missing ')' after "__has_attribute" > 637 | #if g_macro__has_attribute(fallthrough) > | ^~~~~~~~~~~ I'm now trying with: diff --git a/tools/perf/ui/gtk/browser.c b/tools/perf/ui/gtk/browser.c index 8f3e43d148a8560b..d2dadf3873fbdf41 100644 --- a/tools/perf/ui/gtk/browser.c +++ b/tools/perf/ui/gtk/browser.c @@ -1,9 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 +#include "gtk.h" #include "../evsel.h" #include "../sort.h" #include "../hist.h" #include "../helpline.h" -#include "gtk.h" #include