Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp659779pxu; Thu, 26 Nov 2020 08:20:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGx+TfxLIkbgA6sIQmWAExeAlW3A6N4XMQAOSKewbbVWE2z0Rl/es3o7p+zaU7B3rVSvcj X-Received: by 2002:a17:906:35da:: with SMTP id p26mr3467006ejb.256.1606407617867; Thu, 26 Nov 2020 08:20:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606407617; cv=none; d=google.com; s=arc-20160816; b=Y76IXWo45zmStqLLiaH1mbVrpPF5tf2CfO09bLlGlRac6rcIQdlGHq3Qge3juAzOGX ZAVwoV0jeRQVGV1cDRM8pCVaEtLKQOWo/YDapf+auQ/UtORtltu8nfB9aMZQfl5tevK0 wfN0SgHzBKnUmbOJluR152vKG/eCLxV8li3kIvp5ofiek8dgw8I8D7Z/KzdC/2R1LZkH qcZ3Pw29eBGK/AsEajzPOisaBRYKtyhU9JhKXmj6HncIRaTgdt640nRfud51OCZIKf09 cys0DJ9hF86vb+yxfi5aZmdqQ6a6GAXe8/k9Hmw2BWCG3hh96Ocv3G9daH+0DIvMpSdK WYxA== 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=IL7sPB68gF1YeWIUFuBJ//YIBDjI3bDL6qHHKubt/Z0=; b=x2qO3WJ9tTQ1KsljAbG0nlIt1hI7OGDEEMGiBqW648msdPSfk83ScN8hMCicFbS1Gx yu+tZeVIt/6oB1+LJAevvOCyEx3yg+YxDRxbTB0Y2ly/acKKlyg30qTwzipasneBJFB1 I9EOEBNNHp0iatSo2UlN/UxREo6ZdvdXHzNAG3hg4joyjprRo9QiCDpxQnec11bGZhNI wzDarwdgrggVacCd671g+3Ftx0hyaYGU/6Rtd3junauWJLZnvrCjEp5RUFa/Er/rCCMb uGCdWMBleqii1NJukIE3Ym1h2lHZ45TAUWo03VE5a+h4VNv+KURo0YMkARtIT87ahtbR h4mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IOmhlXVU; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si3336578edx.69.2020.11.26.08.19.44; Thu, 26 Nov 2020 08:20:17 -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=@redhat.com header.s=mimecast20190719 header.b=IOmhlXVU; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391545AbgKZQSd (ORCPT + 99 others); Thu, 26 Nov 2020 11:18:33 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:28154 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390021AbgKZQSc (ORCPT ); Thu, 26 Nov 2020 11:18:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606407510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IL7sPB68gF1YeWIUFuBJ//YIBDjI3bDL6qHHKubt/Z0=; b=IOmhlXVU0SbnGpY3BpOTvOF5fmmL+x3dr/igY6NQi8P5VRvzaBx7rYihsMQLnr/2wjS5ls lvhWzMsvGVZbuOMadN8VodSqXyxvXgSytlwV2pfW04pV/KU13GU2/Vlnjpaju/SpxStUa5 Ap4HVqPWBmDJjfj+VUMbgiAsQoaIc4c= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366--I7wWpc2MLSjpqhdv-mkpw-1; Thu, 26 Nov 2020 11:18:25 -0500 X-MC-Unique: -I7wWpc2MLSjpqhdv-mkpw-1 Received: by mail-qt1-f200.google.com with SMTP id i14so1477523qtq.18 for ; Thu, 26 Nov 2020 08:18:25 -0800 (PST) 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=IL7sPB68gF1YeWIUFuBJ//YIBDjI3bDL6qHHKubt/Z0=; b=gAgvVWZ5XD13yXR8GRl7FBMcKmGUdjD+3cMDVkn9OV4F1nGhcYG+gv7xT8aOb1Php8 zDpwzqVlITOTjT6TjJHXVXUJ2FaDeCJ4o4HMofLPGkvNDIPw2dqbQW8ZJjn2n5OKGOxt Pm5MNNm8nbGxe+vgkNl2aXedhel8AGfVJYTenmaJIbwBwnaowyINxtDiJe/1xm9ZFH1H d+BrXFbasPIzV6/ei1zjazDShuhWunvv+5l3i/atNR7nkHi6cBkHc6QTMI7lEVU3PB0C VK9zDQcNxd3oQKueT2kxSwZuzhRHtne4FZcZpanej/kYHagNVFcSwaKSrQii22vfVQ/7 wwUQ== X-Gm-Message-State: AOAM533cwp8Gg4O5qAqKjS449vOCb9DVH8Y6X2Bl56k5kO4C2+RBKasZ RXvL8kxz/oWqdjPNDWSOkzzWWJJ52EqE5CnJppeonIPFMmv9meorhYtq67kietK1aoCNQ8aAI9/ SaGxDhbtW2fUV/r2SwnSAY0HH9lc/Q/5OGeHY X-Received: by 2002:a37:ac8:: with SMTP id 191mr3794005qkk.381.1606407505152; Thu, 26 Nov 2020 08:18:25 -0800 (PST) X-Received: by 2002:a37:ac8:: with SMTP id 191mr3793888qkk.381.1606407504531; Thu, 26 Nov 2020 08:18:24 -0800 (PST) MIME-Version: 1.0 References: <20201120105344.4345c14e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <202011201129.B13FDB3C@keescook> <20201120115142.292999b2@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <202011220816.8B6591A@keescook> <9b57fd4914b46f38d54087d75e072d6e947cb56d.camel@HansenPartnership.com> <1c7d7fde126bc0acf825766de64bf2f9b888f216.camel@HansenPartnership.com> <4993259d01a0064f8bb22770503490f9252f3659.camel@HansenPartnership.com> <44005bde-f6d4-5eaa-39b8-1a5efeedb2d3@gmail.com> In-Reply-To: From: Karol Herbst Date: Thu, 26 Nov 2020 17:18:13 +0100 Message-ID: Subject: Re: [PATCH 000/141] Fix fall-through warnings for Clang To: Geert Uytterhoeven Cc: Miguel Ojeda , ALSA Development Mailing List , bridge@lists.linux-foundation.org, target-devel , linux-iio@vger.kernel.org, linux-wireless , Linux MMC List , Linux Fbdev development list , dri-devel , virtualization@lists.linux-foundation.org, James Bottomley , linux-ide@vger.kernel.org, dm-devel@redhat.com, keyrings@vger.kernel.org, MTD Maling List , GR-everest-linux-l2@marvell.com, wcn36xx@lists.infradead.org, linux-i3c@lists.infradead.org, linux1394-devel@lists.sourceforge.net, linux-afs@lists.infradead.org, Lars Ellenberg , driverdevel , linux-cifs@vger.kernel.org, rds-devel@oss.oracle.com, scsi , ACPI Devel Maling List , linux-rdma , oss-drivers@netronome.com, linux-atm-general@lists.sourceforge.net, ceph-devel , amd-gfx list , linux-stm32@st-md-mailman.stormreply.com, cluster-devel@redhat.com, usb-storage@lists.one-eyed-alien.net, coreteam@netfilter.org, intel-wired-lan@lists.osuosl.org, linux-input , Miguel Ojeda , Jakub Kicinski , Ext4 Developers List , NetFilter , Linux Media Mailing List , Kees Cook , selinux@vger.kernel.org, linux-arm-msm , Intel Graphics Development , linux-sctp@vger.kernel.org, reiserfs-devel@vger.kernel.org, linux-geode@lists.infradead.org, linux-block@vger.kernel.org, "open list:GPIO SUBSYSTEM" , op-tee@lists.trustedfirmware.org, linux-mediatek@lists.infradead.org, xen-devel@lists.xenproject.org, Nouveau Dev , linux-hams@vger.kernel.org, Nathan Chancellor , linux-can@vger.kernel.org, Linux ARM , linux-hwmon@vger.kernel.org, Nick Desaulniers , Linux Watchdog Mailing List , GR-Linux-NIC-Dev@marvell.com, Linux-MM , Network Development , linux-decnet-user@lists.sourceforge.net, samba-technical@lists.samba.org, "Gustavo A. R. Silva" , linux-kernel , Linux-Renesas , Edward Cree , linux-security-module , USB list , tipc-discussion@lists.sourceforge.net, Linux Crypto Mailing List , patches@opensource.cirrus.com, Joe Perches , linux-integrity , "open list:NFS, SUNRPC, AND..." , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Nov 26, 2020 at 4:28 PM Geert Uytterhoeven wrote: > > Hi Miguel, > > On Thu, Nov 26, 2020 at 3:54 PM Miguel Ojeda > wrote: > > On Wed, Nov 25, 2020 at 11:44 PM Edward Cree wrote: > > > To make the intent clear, you have to first be certain that you > > > understand the intent; otherwise by adding either a break or a > > > fallthrough to suppress the warning you are just destroying the > > > information that "the intent of this code is unknown". > > > > If you don't know what the intent of your own code is, then you > > *already* have a problem in your hands. > > The maintainer is not necessarily the owner/author of the code, and > thus may not know the intent of the code. > > > > or does it flag up code > > > that can be mindlessly "fixed" (in which case the warning is > > > worthless)? Proponents in this thread seem to be trying to > > > have it both ways. > > > > A warning is not worthless just because you can mindlessly fix it. > > There are many counterexamples, e.g. many > > checkpatch/lint/lang-format/indentation warnings, functional ones like > > the `if (a = b)` warning... > > BTW, you cannot mindlessly fix the latter, as you cannot know if > "(a == b)" or "((a = b))" was intended, without understanding the code > (and the (possibly unavailable) data sheet, and the hardware, ...). > to allow assignments in if statements was clearly a mistake and if you need outside information to understand the code, your code is the issue already. > P.S. So far I've stayed out of this thread, as I like it if the compiler > flags possible mistakes. After all I was the one fixing new > "may be used uninitialized" warnings thrown up by gcc-4.1, until > (a bit later than) support for that compiler was removed... > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >