Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11109788rwb; Fri, 25 Nov 2022 11:09:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4s6bANdB9DJRtaTrlqhDvff0Bb8GAjTkwX2SXDPktq3tSr2iq7kYeQcbDqybeF+U4+vcL0 X-Received: by 2002:a63:f254:0:b0:456:4f9a:fbb6 with SMTP id d20-20020a63f254000000b004564f9afbb6mr17208014pgk.318.1669403386760; Fri, 25 Nov 2022 11:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669403386; cv=none; d=google.com; s=arc-20160816; b=OF7QaSRsGS/OF+00gQYMvEb2u3Hi7SZ119PPz7bGhmGl+iTGgniaHtkLjszfIy0IVj BG6DYVyyVi3SWoyPi3UyVQhV6qGA5NasD/64Mk8Z/V/oQ+azskgoW1K4Eoz4k8DIS0aP OOmy1HrjhV/LHc6Ewnp7zxqmIykpcHTclgIqxCeW58AaQ3oDLLAtaVyEdywZTukbLf1s yOW+xw3l14LBTKf0A+uYYIiKSkMHnGRj6IIcIEmunjhElTUw3l7oyJ6czWNewv7f8Yay Y8scRcI4DSIM0NWrfc6hbfIcb6Vx4z/lgRbo/iY24TQc11BG41+IhjlSeZB29yRJMIsV ndKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QlXZSq63uGUHYf3xEcy5GQyj8k3wzV3aaEBxQdNWSY4=; b=gsbJCcyP+svktD31N6Zj5jnv/s6S5tfvlDipyYmGuNaIPQT22QLhVHsT1mI43Bjg/h +bvTrDT9+XYnWskq2OmKAoVDt54hbB4iUnSKEdDZLplkUKtGr1+b+GCENpkGZI2r++Tf pDhq+qvoTifbFuPxcwrR7+YXfmIRJzRJEE/HNAHF+NLjwSu2uaWOsyiAijWK78KbKyNi olG7s6kiYDk9Vr3beQkS025CEYPx9kC5cAlBhcf+tPKsKUXOSQTI4fqIiUicbyYoTD0I n+fWmbC/HWqRSameRI7NOsNs2FbF6N1KdapTTEkg5sxpM0JC3k7GMMeloaAtejJVKs3v vz6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ru0IfZVg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a056a00230800b0056de69b0c76si5337979pfh.283.2022.11.25.11.09.35; Fri, 25 Nov 2022 11:09:46 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=Ru0IfZVg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbiKYSvB (ORCPT + 85 others); Fri, 25 Nov 2022 13:51:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbiKYSu7 (ORCPT ); Fri, 25 Nov 2022 13:50:59 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44FDE53EEB; Fri, 25 Nov 2022 10:50:59 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id k206so4784820ybk.5; Fri, 25 Nov 2022 10:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QlXZSq63uGUHYf3xEcy5GQyj8k3wzV3aaEBxQdNWSY4=; b=Ru0IfZVgDAD8+P3Vd/Cj6cxPxF1il1m19ndBb00b7fH4eUv5LyC2DmjHZHb/moUV8a JsHge43IkuVIWxO44XV59e4g09b+Elr2SLBiQ6IncYJ1qCu198pX6dbQvCzxvfKiNRjG vMUVcr5U+8Kk9sD8v59zmjFHrsosxLm+CbmQdD8r3TjVTxKRuPXV81ZDSQBaUNHROONl 0sJ91C8DtHRaoHSPXNEPRQyHQZe2GD6/JLRFVBnyzzpmWc/pzDOp14qCif7nGdWMzb9m nX3jSAQdqVCWAjAgn/5l8aaKymxs3OYuzuTQaUoOYnVYES/FgdTTd19Oy2jA8KVKnQt6 cR9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=QlXZSq63uGUHYf3xEcy5GQyj8k3wzV3aaEBxQdNWSY4=; b=kJjaXTX9hLylnIcHTbZXVSV5Pb8ZjJJ8ga6BybvbLjJmBXdysENQSOuILdlQqZEZmX dghx3D7UcsxYH2xyeE8LHlSvAPliTSvtHPnf36b3zWCEDivZTO3NRbj6D+zcwPSaYFT6 3uXASlfDtiJr62nnYmc1ztG+ysRRfEQ8Clkx4n4R1gxhzTxiwjJdG6Xi4rjDdeCSfbEU 7r6djOCQ38AdaOSbrY93C95oNsGGe7g1gJ6gSkwIaf1e1EPBdeiGu1ts5rZv1fBqRMlb NwqD0OmBT2OOZh67WWogfarOPxW5y/QIkQ8UbB94DMxLLxqNM9U+Pe36WP0JMwX5E9cr l8Xg== X-Gm-Message-State: ANoB5plCg6+NERWoGQT37jiP0faO2TjQD/Ilccaef1jWSANqpA216pRG ZWjet59XwkxeJ2smC4e6y62B2ejiLTamHSFjdGY= X-Received: by 2002:a25:ca58:0:b0:6f4:3ced:f7f8 with SMTP id a85-20020a25ca58000000b006f43cedf7f8mr68149ybg.489.1669402258512; Fri, 25 Nov 2022 10:50:58 -0800 (PST) MIME-Version: 1.0 References: <20221125154947.2163498-1-Liam.Howlett@oracle.com> In-Reply-To: <20221125154947.2163498-1-Liam.Howlett@oracle.com> From: Miguel Ojeda Date: Fri, 25 Nov 2022 19:50:47 +0100 Message-ID: Subject: Re: [PATCH] tools: Rename __fallthrough to fallthrough To: Liam Howlett Cc: "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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Fri, Nov 25, 2022 at 4:50 PM Liam Howlett wrote: > > Rename the fallthrough attribute to better align with the kernel > version. Copy the definition from include/linux/compiler_attributes.h > including the #else clause. Adding the #else clause allows the tools > compiler.h header to drop the check for a definition entirely and keeps > both definitions together. Thanks for doing this! Consistency with `tools/` is nice to have indeed. I see that `compiler-gcc.h` is included for Clang too in `tools/`, so it looks fine to me: Reviewed-by: Miguel Ojeda In the future, it could be nice to enable the warning for Clang too, though I see it requires a few cleanups. Another idea is to use something similar to `compiler_attributes.h` in `tools/` (perhaps just copying it and removing what is not needed?). Cheers, Miguel