Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp122573pxf; Wed, 10 Mar 2021 23:01:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6dVXRw4anU3CIrFRZsmnKqo9MpX//wOxHszMrRTLWHJZ4IWIKbfZ1sUP2UCELU0aDIK84 X-Received: by 2002:a05:6402:1d95:: with SMTP id dk21mr6951081edb.280.1615446112403; Wed, 10 Mar 2021 23:01:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615446112; cv=none; d=google.com; s=arc-20160816; b=H8IfsgdD4+jSdMR3W/MPMGeynRWwTGWjdFMLnBqQRbfLIJ/VsEn7dm84S+bQBy/Qko oM/6tgNRdA8T4kVqi22fL8w7+hIDWVwjMbSqXTFJupfkN0V4GsGKuqGhqVF8u41gozqh qW8em+E7UhzpdAwBPWtr0+Ll3I8hkl2mJ5AFSOrAviTK4SzjdXf9H2f2iVFhBNAHXCqK v+HbCl+uTXi9xNK8JOHt8pHb7oRCVybttVcDthrDLzHDGOwhD3uwL4GSG1j6/gUi4Csl GA3x+rHL/etRCEdEVJg3sndcOJ/2vdrG8oBjHHX+COA9c/xmT1L5DFtWWbLvO4JJSK/o M0Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=3+uYjBQK4ORw94HoS3mEIbHBXvqWMu6fhtYX/73Hjuc=; b=JHl5kK2HaM/9mzE+kx2Lsy3ZhCuSmmJA7CmMsVkZtW9C+qmtKkTrgqMJ1Y6XRBtNjt 6T8ZLnaZLLlhakkMdNP5ITNHUzPlXhWyVhJvc9p1yIont+CqQvJyyXKo0LGVefmqf31y ukEvB/JZCWxn1EUcMuniCTKB4H3QXOflMhqQm97gzbyIrGIVuyvfQy7NgL5A0S7Eozx1 rtnJYjQ23o5YybwKXGo6iVEmqsPXOSSHegMvMIyibLDNzM69IH9XKLpnGyOk1PJgrQs8 x0FkbVHY5f1VkK9VECfGiB++oGjyrX1PE7iYUu9mljtFEcL1OVlXG4YDrY9TWC/AfVZC fLIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=oCO1GMaP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 s3si1294688edx.251.2021.03.10.23.01.28; Wed, 10 Mar 2021 23:01:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@mg.codeaurora.org header.s=smtp header.b=oCO1GMaP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231550AbhCKHAy (ORCPT + 99 others); Thu, 11 Mar 2021 02:00:54 -0500 Received: from m42-2.mailgun.net ([69.72.42.2]:28777 "EHLO m42-2.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbhCKHAo (ORCPT ); Thu, 11 Mar 2021 02:00:44 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615446044; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=3+uYjBQK4ORw94HoS3mEIbHBXvqWMu6fhtYX/73Hjuc=; b=oCO1GMaPzOLZE4XRCz5vqesuPt6sXYabDpIUqu/wpBdqXu1fm6smrsMQ8FThbrRCPFIMP6av A4wZd7yd7XRSC1p12WQhs8Wcna/s15f6gVqp3nBF9+uofxCCURcoprhzhd1Ni+zVIAup6wa/ c5wj7kMoawgSrmS8c5kGnMQgStY= X-Mailgun-Sending-Ip: 69.72.42.2 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 6049bff9b86af9bf23f5b443 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 11 Mar 2021 07:00:09 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 907F9C433CA; Thu, 11 Mar 2021 07:00:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 66F14C433CA; Thu, 11 Mar 2021 07:00:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 66F14C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Kees Cook Cc: "Gustavo A. R. Silva" , Jes Sorensen , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang References: <20210305094850.GA141221@embeddedor> <871rct67n2.fsf@codeaurora.org> <202103101107.BE8B6AF2@keescook> Date: Thu, 11 Mar 2021 09:00:03 +0200 In-Reply-To: <202103101107.BE8B6AF2@keescook> (Kees Cook's message of "Wed, 10 Mar 2021 11:14:56 -0800") Message-ID: <878s6uyy30.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Kees Cook writes: > On Fri, Mar 05, 2021 at 03:40:33PM +0200, Kalle Valo wrote: >> "Gustavo A. R. Silva" writes: >> >> > In preparation to enable -Wimplicit-fallthrough for Clang, fix >> > multiple warnings by replacing /* fall through */ comments with >> > the new pseudo-keyword macro fallthrough; instead of letting the >> > code fall through to the next case. >> > >> > Notice that Clang doesn't recognize /* fall through */ comments as >> > implicit fall-through markings. >> > >> > Link: https://github.com/KSPP/linux/issues/115 >> > Signed-off-by: Gustavo A. R. Silva >> >> It's not cool that you ignore the comments you got in [1], then after a >> while mark the patch as "RESEND" and not even include a changelog why it >> was resent. >> >> [1] https://patchwork.kernel.org/project/linux-wireless/patch/d522f387b2d0dde774785c7169c1f25aa529989d.1605896060.git.gustavoars@kernel.org/ > > Hm, this conversation looks like a miscommunication, mainly? I see > Gustavo, as requested by many others[1], replacing the fallthrough > comments with the "fallthrough" statement. (This is more than just a > "Clang doesn't parse comments" issue.) v1 was clearly rejected by Jes, so sending a new version without any changelog or comments is not the way to go. The changelog shoud at least have had "v1 was rejected but I'm resending this again because " or something like that to make it clear what's happening. > This could be a tree-wide patch and not bother you, but Greg KH has > generally advised us to send these changes broken out. Anyway, this > change still needs to land, so what would be the preferred path? I think > Gustavo could just carry it for Linus to merge without bothering you if > that'd be preferred? I agree with Greg. Please don't do cleanups like this via another tree as that just creates more work due to conflicts between the trees, which is a lot more annoying to deal with than applying few patches. But when submitting patches please follow the rules, don't cut corners. Jes, I don't like 'fallthrough' either and prefer the original comment, but the ship has sailed on this one. Maybe we should just take it? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches