Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2055775pxu; Tue, 24 Nov 2020 16:04:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJPWKIuwFkwKTxJh3GXvZ2HkoDGYuaWdl+88zDp2Kpntxun3HAz6/aadS5A6aq4C17xFKU X-Received: by 2002:a17:906:38cc:: with SMTP id r12mr837968ejd.277.1606262645201; Tue, 24 Nov 2020 16:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262645; cv=none; d=google.com; s=arc-20160816; b=H9horZQdFFzC5sdEMO9ocBy3jP2drw4OUr2wbgCxdOmSCJDDlu6BfnLZmsYe1e4b7k ZsZk4vRwTRbee36hY30Mmn7EizxrgaORkoiVSD1cejXoF6fN0nJdx8qTZFILaEaszT0o EQY6oSRm+QfGGYW5W5FtvK6c8JATEGdd67pC/4q0cwnYMlKde+Mm6vrH91DgTuawFd/Y 1Gj+uQbgLhP0ogXKri9VhinuRfqVDyABdee9IhsPrRy8PyPgxjrtK/aJPrAFOIrXPTAm XHJKBeobw+LDbhqTmllXGy78/IyV2fkiVHE1WJPnQyjKaPTbeJJZO1lGPh7S6F7J+VG8 qZbw== 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=Jbdr1BEjJUZERXYDOU4Gv/mlbgAbUhdHLiICpsfXV1E=; b=WIVpLtQmJv7Og8tldjh5RSTDjh6BxXkwk7hOy5/69DMk4nMM7hvrS+p0Rq1t5vfB8U Y082ij1iJD2NGQKJseZkiQBlhIORyuMwoIxy3csl97/z2V2+rRmkgI1FRvXOZErP5tBm d/B9UmulRxoiVp/IeNk1hiZrIf0yLTWrp/XncvJ9CGhLs/9bWRz2nqtj2I9GNglkWGKc 7QYdOpiHSnOU52v41tFXKqarh6Mu3lOFI/Mhr5LiDRuBgR8/hFZ8xrU2FXc7JXruTsc8 1xozjGJoItCYgHc3YgLeLLfGr1Pzixrhia+0Q+cyCT8e67zqg3blDQ+o4qIPLz/gcfN3 34UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l+vUmSI7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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. [23.128.96.18]) by mx.google.com with ESMTP id be11si181512edb.164.2020.11.24.16.03.42; Tue, 24 Nov 2020 16:04:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@gmail.com header.s=20161025 header.b=l+vUmSI7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S2387423AbgKXXQ3 (ORCPT + 99 others); Tue, 24 Nov 2020 18:16:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732612AbgKXXQG (ORCPT ); Tue, 24 Nov 2020 18:16:06 -0500 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7D41C061A4D; Tue, 24 Nov 2020 15:16:05 -0800 (PST) Received: by mail-qk1-x744.google.com with SMTP id u4so1022695qkk.10; Tue, 24 Nov 2020 15:16:05 -0800 (PST) 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=Jbdr1BEjJUZERXYDOU4Gv/mlbgAbUhdHLiICpsfXV1E=; b=l+vUmSI7i0l7fGuVwLPE5fOuxSSHusFrOEG0e9vJ5rcmJlRUOrCYTNMgOLszTPHVi8 kkm8fDq5tpugZyKejz3uk0cqdmJQS1mRaMRBkOrvbAyI5fs/P/fRtiJLDz+N02sHzTn9 5/inSz1Fbn+KfojwxtYTlcXPJfmsrqKqTBJHlwr9t4EjDd547DXA4VcN7evdsnVsuQ6p BBfcG3FVJZcSml9If1GSG7EsdjE7zI8hFJDY7AHsK/qRYVzYo+XeozyqqdAfx+vCyNIu chiyZGm6NoHt+eS3/xbHVpbDRehhnbGG6wOdrUeu9OVynRP4/UUYeZuXMpT7icG9n0vb 4oYg== 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=Jbdr1BEjJUZERXYDOU4Gv/mlbgAbUhdHLiICpsfXV1E=; b=qNrhruTN4K3shm+r5iYa5hVsCZZ4Fe6V+BUrrDDih6zuDtTYIoYnpMXiV9p9zIYbse GX5qL7Y5MrouFLTAhLKhp59FnXn1+/CzBzZnhbGoiyt4jfXL6HWEb6ojFYzBJ/FNpz1a l0Pi1SGeszErrYLRFPEI0dCAFnwBroZJBh7QAljea+bBnMvwaaGz+JXM65ZOSzeHCz+w 1p6vleKiVIWnzKbuP1QaWOSnjgw5OiJ0jQuc8TtJExazZJZfntF/Q3fNxrhDF38PCc0w 9ERD/d59ay1eM1jJFKEKfDCjFsTE5/cWB1DgkNI/W2kG8jfXBvLm/hYusJ8ODCSk/krx 1BQA== X-Gm-Message-State: AOAM533yPy42awkMO/Fu3gKlMM+dl72Amht+Xb2LK7e4h6kKEU+/1Oo5 AKvi5/kao8x7hTt5k+GgnrgBF2FQDWCdfQDN8ig= X-Received: by 2002:a25:61c5:: with SMTP id v188mr748702ybb.422.1606259765056; Tue, 24 Nov 2020 15:16:05 -0800 (PST) MIME-Version: 1.0 References: <202011201129.B13FDB3C@keescook> <20201120115142.292999b2@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <202011220816.8B6591A@keescook> <9b57fd4914b46f38d54087d75e072d6e947cb56d.camel@HansenPartnership.com> <0147972a72bc13f3629de8a32dee6f1f308994b5.camel@HansenPartnership.com> <20201123130348.GA3119@embeddedor> <8f5611bb015e044fa1c0a48147293923c2d904e4.camel@HansenPartnership.com> <202011241327.BB28F12F6@keescook> In-Reply-To: From: Miguel Ojeda Date: Wed, 25 Nov 2020 00:15:54 +0100 Message-ID: Subject: Re: [Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang To: Finn Thain Cc: Kees Cook , James Bottomley , "Gustavo A. R. Silva" , Joe Perches , Jakub Kicinski , alsa-devel@alsa-project.org, linux-atm-general@lists.sourceforge.net, reiserfs-devel@vger.kernel.org, linux-iio@vger.kernel.org, linux-wireless , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel , Nathan Chancellor , linux-ide@vger.kernel.org, dm-devel@redhat.com, keyrings@vger.kernel.org, linux-mtd@lists.infradead.org, GR-everest-linux-l2@marvell.com, wcn36xx@lists.infradead.org, samba-technical@lists.samba.org, linux-i3c@lists.infradead.org, linux1394-devel@lists.sourceforge.net, linux-afs@lists.infradead.org, usb-storage@lists.one-eyed-alien.net, drbd-dev@lists.linbit.com, devel@driverdev.osuosl.org, linux-cifs@vger.kernel.org, rds-devel@oss.oracle.com, Nick Desaulniers , linux-scsi@vger.kernel.org, linux-rdma@vger.kernel.org, oss-drivers@netronome.com, bridge@lists.linux-foundation.org, linux-security-module@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, cluster-devel@redhat.com, linux-acpi@vger.kernel.org, coreteam@netfilter.org, intel-wired-lan@lists.osuosl.org, linux-input , Miguel Ojeda , tipc-discussion@lists.sourceforge.net, Ext4 Developers List , Linux Media Mailing List , linux-watchdog@vger.kernel.org, selinux@vger.kernel.org, linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-geode@lists.infradead.org, linux-can@vger.kernel.org, linux-block@vger.kernel.org, linux-gpio@vger.kernel.org, op-tee@lists.trustedfirmware.org, linux-mediatek@lists.infradead.org, xen-devel@lists.xenproject.org, nouveau@lists.freedesktop.org, linux-hams@vger.kernel.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, Linux ARM , linux-hwmon@vger.kernel.org, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , linux-nfs@vger.kernel.org, GR-Linux-NIC-Dev@marvell.com, Linux-MM , Network Development , linux-decnet-user@lists.sourceforge.net, linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-sctp@vger.kernel.org, linux-usb@vger.kernel.org, netfilter-devel@vger.kernel.org, Linux Crypto Mailing List , patches@opensource.cirrus.com, linux-integrity@vger.kernel.org, target-devel@vger.kernel.org, linux-hardening@vger.kernel.org, Jonathan Cameron , Greg KH Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Nov 24, 2020 at 11:24 PM Finn Thain wrote: > > These statements are not "missing" unless you presume that code written > before the latest de facto language spec was written should somehow be > held to that spec. There is no "language spec" the kernel adheres to. Even if it did, kernel code is not frozen. If an improvement is found, it should be applied. > If the 'fallthrough' statement is not part of the latest draft spec then > we should ask why not before we embrace it. Being that the kernel still > prefers -std=gnu89 you might want to consider what has prevented > -std=gnu99 or -std=gnu2x etc. The C standard has nothing to do with this. We use compiler extensions of several kinds, for many years. Even discounting those extensions, the kernel is not even conforming to C due to e.g. strict aliasing. I am not sure what you are trying to argue here. But, since you insist: yes, the `fallthrough` attribute is in the current C2x draft. Cheers, Miguel