Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1452326pxb; Fri, 13 Nov 2020 13:06:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+hV04cVxSjwGps2IkYGeo2Z98u0pXUXB0YyDTCX+C7Vqu0EGrNzTc3QV7iB1dDGDxrtFq X-Received: by 2002:a17:906:5fd0:: with SMTP id k16mr3999344ejv.133.1605301575062; Fri, 13 Nov 2020 13:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605301575; cv=none; d=google.com; s=arc-20160816; b=LZKT8Ax3A+tjAsgjdB4gwKD4CY6QRYtm2xSXXiVLo5As97idUPpXBospn0/XAI3Pcd uea29SWU95WoJV8ap1hudmIIBE/bMKVrZ4anmv9rJOCGBmdzDP2AAABUNhT9uQa89lwb C01BcuwHd/9lZTzxMcQ+0POydpbO6PWrklRgBeqOvvkr6xw908+/mtDo1ZA6VIaFaIGU CupAH+Pgaq7L4EdyepgZAr79tmUEFLKjXv/zgMt6IqH8HNT8ZsDTWuj8+27bvOuu6E+b KSF8iNYGWlmOIS9MOeEetS18KWRCt+UFDqqit7yeK+Loj1vsUaY7u6HSOknQdnVV0c+q OyZA== 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=Bu54NTDDzZAvafBN0qstmnnIgcbv3/RJ0zdchAkmdlc=; b=AUfeq4UT9wMHlc0xB93G7auEB85wokL8FcweepQ0GalqT9k90JeBh+Y3zwQa7g0L6Q Zj/NN7iczpRFTCdq7h3PULS0Z9x08JvZa9EFmE5VNewnTQwbU1uSn9vj+zrF1OP9UwZY c4lEB1VLAtDga8Rg2RHzEpKigmUZL1AvJaQVw2xAA2NLKnkGtueKAwfk7O9aVEqHlTmf LgYNvYcYUseiPI261K+Ef7XzPp4Erw512h0TRE0gqWO+O/XVfpVmNNtKEETr8Gkx0W5m 7FJp2a3zT21ksIBaElrdTwhynacEdYYwOepHsjXzUZe8PUG7Spl3bvWHmew1jr9/fwOv yXcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gtpsQ8e6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si6132120ejb.424.2020.11.13.13.05.52; Fri, 13 Nov 2020 13:06:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gtpsQ8e6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726113AbgKMVEV (ORCPT + 99 others); Fri, 13 Nov 2020 16:04:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbgKMVEV (ORCPT ); Fri, 13 Nov 2020 16:04:21 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8BDEC0613D1 for ; Fri, 13 Nov 2020 13:04:19 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id v12so8628797pfm.13 for ; Fri, 13 Nov 2020 13:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Bu54NTDDzZAvafBN0qstmnnIgcbv3/RJ0zdchAkmdlc=; b=gtpsQ8e6BmSuHGCtSgJt6cRIMSJyxWRCuyI5kmjzmoZHHt5LtjxXmRbyq2hXcDaI+Z +Vza2NlXxsuTtuRSt9dseQT4WA+dosVLoiJ5TOHnLumpOe9X6rTVCo+qgNgSe0iRMM4x 1lhcNQK8J790mRL0lPjReVBKLOn0QIUU5iTPXdxHYEZVBMQulHCxk/OurFaT7LwrCwcC /o2KuWvflZWIAVAK9ryx9bdXkLImM8xBe9PMmqABqIV3IXA+8Sk870erD4tRgEkgo4XT YNUO4MYxH18OpTDP5S7EBXRexL6Yw8xw0g7p5LNnEV1sPG7uGm53NXt3FMxIejR+fBvn SkTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bu54NTDDzZAvafBN0qstmnnIgcbv3/RJ0zdchAkmdlc=; b=YClGLcCuw5RtViI5vz8sxtM7V93IKJ4yHgIDzCwiymY7oVM6hHDBbIMncG7rObgk6y b8nMQ7h/IYvgKPddPGMX2TBtiVlK+UEtDNhdk/q9pmEUZns/RUgspqluU01veVs2CA0e /KSl8kexBr48a53zeCw5Kip/lAolvNMkWkM450B5E5F6V1EMqBu1RRUJtA69sZA8S8E5 RafV1D+HWxg1m00zWuVPguPUYDm+m+42b0r1UDEpHXclKEyUaaP0b5Cp4fPFCv0HljOt GU+ExZGv1HU9bLIS4XVUvAUfPsCMuGMM/RKpFqLAgDB9LmJjSW2sLBMPsg6V8ArOr2Gx XSdQ== X-Gm-Message-State: AOAM5337uynyJ50v2S4djdS/NPusvf89Em5yRGrVYVpal1Sno6Idtcq6 7L9Q0sdAVZUKXAXZnh+LCMTJbVIUbgpxCOU7whZgxQ== X-Received: by 2002:a63:b55e:: with SMTP id u30mr3314262pgo.381.1605301459249; Fri, 13 Nov 2020 13:04:19 -0800 (PST) MIME-Version: 1.0 References: <20201111021131.822867-1-ndesaulniers@google.com> <61039da395c8a28444e2f3958d29deda4c0d49b3.camel@perches.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 13 Nov 2020 13:04:08 -0800 Message-ID: Subject: Re: [PATCH] ACPICA: fix -Wfallthrough To: "Moore, Robert" Cc: Joe Perches , Miguel Ojeda , "Kaneda, Erik" , "Wysocki, Rafael J" , "Gustavo A . R . Silva" , "clang-built-linux@googlegroups.com" , Len Brown , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 1:01 PM Moore, Robert wrote: > > I can do it this way: > > In the global header actypes.h: > > #ifndef ACPI_FALLTHROUGH > #define ACPI_FALLTHROUGH > #endif > > In the gcc-specific header (acgcc.h): > > #define ACPI_FALLTHROUGH __attribute__((__fallthrough__)) > > This would not be #defined in the MSVC-specific header (acmsvc.h) -- thus using the default (null) in actypes.h (The per-environment headers are always included first). > > (We do all macros in upper case, prefixed with "ACPI_") > > If you can update your patch to use ACPI_FALLTHROUGH, I can do the rest (above). Sure, I can do that. I'd need to wrap it in a little more logic for __has_attribute to support old GCC versions, but that should be doable. -- Thanks, ~Nick Desaulniers