Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1578830pxv; Fri, 16 Jul 2021 12:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+IsBsjPHo/z7+kOtV/pETe1UU0m3FDvelG0WKdd1NMYRejto47ojkk1SV4F2O6BMiwoG7 X-Received: by 2002:a17:906:3658:: with SMTP id r24mr13516563ejb.179.1626463821973; Fri, 16 Jul 2021 12:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626463821; cv=none; d=google.com; s=arc-20160816; b=PADHZIdzM8mHYHmhq8Dclwm2o7pEUBPMcEKHBQ6VxtjHZYgE8Me9hyeu8FWvEVO9+N 8bTaL+IydkURUBiHQnC36kFCvdb6o4IAUVSCLMmC4f0X8GLBM0nCt9pGLiVI2mY3TUpO qwOEnIkcF9fxLy5sjlTG2agnm/v7g9Zm1UKaq/OUFIpv96mzaOlyyU4r3OUOfiuq52ic zn62/qJa3m3J5vPikAWjjC1EQigpNFaGWn8bfon/+qVUwjZ8tv7ljpXVpf8G4HytfmCQ fIPfGfiiKnuw7cpqB7VlsHuZAN0EWRN8NzE/zYTttO9CrOmd6fiMc+JtI1SacdK+zd73 GHzg== 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=VgJDZkLc9fmkT1eM2NCtEiKFd4AK4SPRUAi+psPgPbg=; b=AKaezlnhYmBGgXp9f5GGTVgisg1wwtpWFZgFwXm2rXLHBKRRuLAPG4OqZXTV8wWqtl L03KliJn9H7kjKccfhzSWqtfuO4AiaCaNKHGj59afCm8Cc1L3xUlhJQD6fevZQBi7cFv IEcTvFwqG60zq4oOwmAa8lM8MkWMmkRxlZflN1UYkDymrs96hss1ylIyI51UAz05BWB1 KML304X6WCKGmTrNgNQatzCeEMuzU/5Nr/MRC7P/EjAPsIFRQZaxqtR2XC5CTAzF1ztX pG2WQdVFZ4gWvCWsmy6matsgo6bKfVk0yfONTlbi1n+BWcDW09zRx5ElFSUv4gI9byNt s6lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IJ70gg+b; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz14si7547950edb.178.2021.07.16.12.29.58; Fri, 16 Jul 2021 12:30:21 -0700 (PDT) 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=@linux-foundation.org header.s=google header.b=IJ70gg+b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232226AbhGPT3o (ORCPT + 99 others); Fri, 16 Jul 2021 15:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbhGPT3n (ORCPT ); Fri, 16 Jul 2021 15:29:43 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8987DC06175F for ; Fri, 16 Jul 2021 12:26:47 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id g8so11916328lfh.8 for ; Fri, 16 Jul 2021 12:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VgJDZkLc9fmkT1eM2NCtEiKFd4AK4SPRUAi+psPgPbg=; b=IJ70gg+bY2VDX9mgP0INImC7tbm3A1nuwjxrBTGyuveS2Yl2Y9TlwqvVsK8dzadEuR CteWexdNPU5UI5ml8rEh75q9fZz3x1ouE9iE+2eOt5Ox5nlkkNvWl2JZa+I1R1cG1OZI xjA4LCNrGkp1rxXx/j5bZPgO/Yh9Io4dq4GFA= 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=VgJDZkLc9fmkT1eM2NCtEiKFd4AK4SPRUAi+psPgPbg=; b=gaawezHmosDval1jtSzMRhIPNCAnaf2jjkeob2foG7RYKNYORCQWmOuVapfLngMciJ zH/8+SE9Jq59A4VsfVjRCPDzdsEWmNh4nhtK61xK63ExiIYMG1qosWj6Gj5LSjZCnmT1 ZtAwA3V8Mi9LMdB+DAvdj799AVCfDZkLaEAJc0jwttlgiyhN67TNWRr+gkufWNQunMRB JEUZaGSoQYzGk/WOln6zgGeR3rw6QK77cshpZE5ZY1quM92aop+AYBqT0Jhh5rJhIARz 6pwlh/MuZ9wnExPIh826BfgBW627TGlHFdlz7+uk4/Y8i/uX9LwK1gtbqy3UvLzng85z puCA== X-Gm-Message-State: AOAM530EehqheEqd1scEmy1auHqPO7eSMGRttiFbYzcZmb9tgNqr40zW 1B6rvk1S+TNfJ7jLlTEnajUS8Y6gHQ36Hyx+ X-Received: by 2002:a05:6512:3d0f:: with SMTP id d15mr8970662lfv.246.1626463605704; Fri, 16 Jul 2021 12:26:45 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id j14sm764369lfc.20.2021.07.16.12.26.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jul 2021 12:26:44 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id y7so15073837ljm.1 for ; Fri, 16 Jul 2021 12:26:43 -0700 (PDT) X-Received: by 2002:a2e:971a:: with SMTP id r26mr10499533lji.220.1626463603654; Fri, 16 Jul 2021 12:26:43 -0700 (PDT) MIME-Version: 1.0 References: <20210714200523.GA10606@embeddedor> <54a99f59-0211-d9c2-4ab5-e74bbc72086b@embeddedor.com> <7774f876-6a60-03e4-b273-34f508d06404@kernel.org> In-Reply-To: <7774f876-6a60-03e4-b273-34f508d06404@kernel.org> From: Linus Torvalds Date: Fri, 16 Jul 2021 12:26:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] fallthrough fixes for Clang for 5.14-rc2 To: Nathan Chancellor Cc: "Gustavo A. R. Silva" , "Gustavo A. R. Silva" , Nick Desaulniers , Kees Cook , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 12:18 PM Nathan Chancellor wrote: > > Hence why I suggested -Wimplicit-fallthrough-unreachable. As long as it's a warning that the kernel would never set, that's fine. I think it's an entirely bogus warning, but at some point as long as we don't need to care about it, we can happily ignore it. Or just continue to say "clang is spewing bogus warnings, don't use it". But the sane naming for that warning should certainly not have anything at all to do with "implicit". Quite the reverse. The warning is about an _explicit_ fallthrough being unreachable, and as such thje warning name should reflect that. So make it just "-Wfallthrough-unreachable" (maybe even "-Wexplicit-..") to allow people who want that pointless warning to enable it. Linus