Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp50848rwl; Thu, 6 Apr 2023 14:35:48 -0700 (PDT) X-Google-Smtp-Source: AKy350a3xIKfByxXU4PYIvcsBJ63qQi1gU8ZtZvpxJ0fVMMr43TPrRvILt+fkqNR6PgN6I6GLEAY X-Received: by 2002:a17:90b:1c03:b0:237:47b0:3235 with SMTP id oc3-20020a17090b1c0300b0023747b03235mr12905068pjb.32.1680816948331; Thu, 06 Apr 2023 14:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680816948; cv=none; d=google.com; s=arc-20160816; b=PGFw9SS2WLsXPrQCgE0ES9vJO66EDYQ0whjPCEMtbH4ItCDWVK93TQGC3U9lAUKYqr zbd62HdtxfZJIcr6ksCgY4gIAmGAUjSfNDz6eOzV2cJCFX7C/aQOSlHY/qXGIBQYZH2m JMXcmL8yELH4zCXfHlHrpZLKpqHVu0j3BTNmKMWMHZApyvmgpqLGROeD+pcd7mvCOhJZ wkKDoIalcAMVlSH3Pz+UKKldx3vwMqtDFnMdfdx9ulue1ceMWxWRtsBGFdBJmd49kMD7 7V43lILSKNVMZ0YZI3Foy0few01bqkGHEKJLV/RAi8jhbYtiy0UoCcDkMseiz8tfINgQ mRzA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2N6ZuWZ9TgpAqE3oU5qR+DOLTdDSVKX107FckmhihRA=; b=x65NZsqlIjrcRwl5RqL7DEjLnepMVycAFtUvpwer/oP53lJWe8t+sv8lK76EwRWiz9 C+OOXZPxVAdua0lWsPCVoq/ciAhlqwsKNjSz5bCdhUxMQ3ULzKuj3hgFfT2zdHE5UBs+ mP8nhm7XS+s/2r6PtilEXUlbKTQNl5BbxGn7lifVRVPkZ9xXf3AkHW9hqzux9/xO/jOU L1tKHUETgX13+mzsWj3jCo3EzbdgkebPYwD2S2jmUdPxTvXabdpzxrVmngl7PGIZD3iv rOnfHL5VqrEJAJYZRFObER1h8d2UF0yQ2/3tyFyNlwGV89ZkdCsOp0UevJ/LQntAHUVE Aa1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fz+eG2c8; 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 g1-20020a17090a828100b0023b340b6388si4511732pjn.97.2023.04.06.14.35.35; Thu, 06 Apr 2023 14:35:48 -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=fz+eG2c8; 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 S229832AbjDFVfV (ORCPT + 99 others); Thu, 6 Apr 2023 17:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjDFVfT (ORCPT ); Thu, 6 Apr 2023 17:35:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA698B5; Thu, 6 Apr 2023 14:35:18 -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 617BE62D38; Thu, 6 Apr 2023 21:35:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83F1CC433EF; Thu, 6 Apr 2023 21:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680816917; bh=klvO6puhDKE+MqD3D0md8Hdzzjg3QNMR84/fZATfffs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fz+eG2c8B2/Cx4X7vJDsaslk06S2nedje/qPUfnFS7j0K1d05ZXH3lGUzP7ocsVbR iueHYprpq8tWpJKKtiYrK8x4gzpjWJFKbQ/fK3qrm4oh0PMrv2tIqbS7iFG1+fOP3N 2EFpt5NeNA4Kpcc+6QBGBUOVZAFLv0Kmkjx7TijFVcLPR6VUn30S9kzSFFFXsArNGt v7QPjkd9CR7PZ+skZD2EQZJh/Tovcya5YzwKq3OEeOaKc6ROBnuBp/W8JktzZq3/eC ScrZCjuU1hJzLhUEL2vGwL7dmy2e2T/LqXvxFX59OENAN20WX2Jw58H1BJdzkzaYZZ gCtemGQql2IiA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id A8E3C4052D; Thu, 6 Apr 2023 18:35:15 -0300 (-03) Date: Thu, 6 Apr 2023 18:35:15 -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=us-ascii Content-Disposition: inline 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:32:42PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Apr 06, 2023 at 06:31:32PM -0300, Arnaldo Carvalho de Melo escreveu: > > 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" Some more was needed, folding it with your patch. - Arnaldo 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 diff --git a/tools/perf/ui/gtk/helpline.c b/tools/perf/ui/gtk/helpline.c index e40a006aead87b9b..8ea95898a5bd0295 100644 --- a/tools/perf/ui/gtk/helpline.c +++ b/tools/perf/ui/gtk/helpline.c @@ -1,9 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 +#include "gtk.h" #include #include #include -#include "gtk.h" #include "../ui.h" #include "../helpline.h" diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c index c83be2d57f7eb7a7..bae21f336ae6d576 100644 --- a/tools/perf/ui/gtk/hists.c +++ b/tools/perf/ui/gtk/hists.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#include "gtk.h" #include "../evlist.h" #include "../callchain.h" #include "../evsel.h" @@ -6,7 +7,6 @@ #include "../hist.h" #include "../helpline.h" #include "../string2.h" -#include "gtk.h" #include #include #include