Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2201975ima; Mon, 22 Oct 2018 06:07:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5evaUiDweiiCbCvHsixSFJ+I7yzq1bDIGyzZ92vBg/Nyn4KrVWA5Pnq3I8/GnBkpF75j2tF X-Received: by 2002:a63:31d0:: with SMTP id x199mr4083550pgx.10.1540213659739; Mon, 22 Oct 2018 06:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540213659; cv=none; d=google.com; s=arc-20160816; b=veSMsbM7nLTeFJVr12pwIirzoo93cEorkyfV4XTMSTceixQSU25HNL4fQbnsiUfLAq GpkWbCPOsb9MPY3iHS4jx6DNJ2gN0E9wCd3/66fNXMkgy9VJ4iYQuiyjH6IkZTBYfNmq YXRwEwF1PJmMQwSrp4FLbeXr1mXigRbb/DzxEXR5PWEWopzP2K94PTQxFJBqaC9ZvFYC kkryuAFfxanpPMVWpD5ipvu6WIPCF3qdv13bIUFxhsf38a3qUUrMa5xOxRbRJQ1CspPy jko5QAQTIVoiLi7FDHe9ojGoRUyyNyTunWgaqKNFPgIXRlrPa9yrzIrYYMCC/y4Iejya CFtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FPdjKwjTXI+wwDG0R240CjO2jC/BynSfRerURsScnAw=; b=nY9c6LVkMXeHkONH/o80wpJpw0q5r0j57pTRk2bqOQa7eBQxcY+D6qJhD74O6LgOXk CQDVlUAlYK/q2nJplV/TXkOjfDeltSmXRuJIIUgYioA5sD93vsIY6vDGTlX4rTe8qRg1 5IIYSn0kvmbFCohdHEqxtjWTXMgqE0tfVzWhWgWsKlH3GwHw/FrIkOHF2O0zhKPWjRqU L5hlSxA8hPgcUxdllT0tMRCaW1ew5UbL/htGxE6UGS/+hp0bOLR0M2vrtGP+Zmm6FhJm DmLwcrURnsGxBI5iPsZPqmE/H1dpeFR7WX60LxU/br0tsCjgQyVxDkgcMElYmDM++HAe r94A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q4KwmSEe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h15-v6si4803743plr.12.2018.10.22.06.07.12; Mon, 22 Oct 2018 06:07:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q4KwmSEe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728862AbeJVTm0 (ORCPT + 99 others); Mon, 22 Oct 2018 15:42:26 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35908 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728374AbeJVTm0 (ORCPT ); Mon, 22 Oct 2018 15:42:26 -0400 Received: by mail-lj1-f194.google.com with SMTP id p89-v6so36613951ljb.3; Mon, 22 Oct 2018 04:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FPdjKwjTXI+wwDG0R240CjO2jC/BynSfRerURsScnAw=; b=q4KwmSEel4WRxtf44uzynKgKbOBskUsffIGJI3KyRhi6SJXrrkDLeOzdU+3AOdUTyc atUaP9R5L9qnx/ir9ieNjZ9KGJLUxBgiRS58c8XLdzUTsH340MBi6NeutShdzxk8TEx2 1UkqVgMYQde03/alKtuKh2RGQip5gKDWjiWakX73e68B4jvUmAZezkc2Trmo43Xw8O6s Gl+8PjNixPMSQCz9jL5TlGTPEs2axof6dWJ/gJmpfRiVyzuHYS1VoA+OmshvUFXW3cF+ ChiJ6eucfBcBbSsv0BLgO5k3puDPvny+gfY1iSfE32M+JE6J72NFjP2gLfo0xC7AjJN9 4alw== 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=FPdjKwjTXI+wwDG0R240CjO2jC/BynSfRerURsScnAw=; b=gJpdODxZChMQEYR30D6coePW/Puyt1hcfnzG+I40FTaKVF3LmIGao/vHkFUB0mSd2c 5V4gY2FCh5FDnKMP1lVF90IM1hWGagidJWhy0HhuUODYsvIY8H1FvITh+1vXYn7XEPNu lhuhXMKfmKnOuwCYagoke0T8OpS/NsKP6MXCIUOlrv7gHsK+kqu+c7qc1r5CGd7mJ1YH IZAK6kZkUjVjd/MlidWzrnqaN0rL9bylUnImHKmYEOTdqkZ4lXxt+opZ5kv9c5uqx1tV 9zOMto8GqYI65+bAMEC4YUn18t9+G13Q0L7MMrddRByOlU5Q4+n8GaW+5VnEQmGyKQHk 7Xkw== X-Gm-Message-State: ABuFfoiKVQ//Dvl7EBE4Pdw4WWNB9o2rSrCummS4/8L3DdjBjZp4Cz2R MLTxE+Q2ts776ZAmLeJiRKhFnL+tXtrgc//ampo= X-Received: by 2002:a2e:240b:: with SMTP id k11-v6mr7582851ljk.139.1540207454975; Mon, 22 Oct 2018 04:24:14 -0700 (PDT) MIME-Version: 1.0 References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> <20181021222712.GI1617@thunk.org> In-Reply-To: From: Miguel Ojeda Date: Mon, 22 Oct 2018 13:24:03 +0200 Message-ID: Subject: Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1) To: Kees Cook Cc: "Gustavo A. R. Silva" , "Ted Ts'o" , Greg KH , linux-kernel , Dan , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , David Miller , Andrey Ryabinin , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Nick Desaulniers , Andrew Morton , Linus Torvalds , Linux Doc Mailing List , Ext4 Developers List , linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 22, 2018 at 12:53 PM Kees Cook wrote: > > On Mon, Oct 22, 2018 at 2:41 AM, Miguel Ojeda > wrote: > > Please take a look at the rationale (also more details at the linked thread): > > > > * gcc 7.1 added -Wimplicit-fallthrough at the same time as the > > attribute and the comment parsing. > > Ah, perfect. I missed this. :) No problem! I know the commit message is a bit too long, so I understand :) > > > * clang does *not* support the attribute in C. > > Well that's not good. :) I will see with clang if they plan to add it. (By the way, if the "*not*" sounded rude, sorry; I wanted to emphasize it is surprising that it doesn't -- I also assumed the opposite until I checked it). Cheers, Miguel