Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2396100pxb; Mon, 19 Apr 2021 04:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyygsE3d7mPv/zPNsywtjPF9aNM2D+jtr59rWVn4wTqM+VQ7MSkfQIz/lMTIMTVtxnFHjWU X-Received: by 2002:a17:906:134d:: with SMTP id x13mr21915593ejb.61.1618833421503; Mon, 19 Apr 2021 04:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618833421; cv=none; d=google.com; s=arc-20160816; b=hTvWr1eJkQL06pDfNEeBXTjQLHIlUFfAr1qfa7jHcKDuzeVdkXBs+UzDYs8e5bCMfi ao2cnzGzOjLGuF3ynXToiHUdRlJ+mqCisFCd95mljm+SziGdltTJk3giRfnCV1j5dFMZ kU9WEWOgJpTxCnxpmSA/k1hYE1/hOaWkbPpFwkkRz+xXUT+db/+W1ukoC5/QU6zSKUnO MHgh+gk3GwJqdVqe1jq/YZXSFIvuZ21vJ4OWhX0PlMq5A/4GCjqlf65lpE7CzCaV4WdM K45FPDxjbkCUcxbATqlEVNPwwKy8OnNEdieEfa0ardBCfm1sQBp8iM+fttZdRhR9pVZr XRSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=geHbG37dG66IVQ8TphiJdyvokhoZACxqTO6eQyQepdA=; b=kVcJ/VCSKaKGD5P99vQ1r05DBOmIcjquoqhFzOvKtdbDD5u04859c51Z7c6yDmBmiT 3FbjjffbH3qB6XuAzq+Gi4ZLrB84mYJutj/7qhQLjPDVENgfZP+jY7G1Li2kNY4js152 tJDrMkAX43ByEdlBAbhvEIDKKR+PPYeoB9SgPSdzkxtjhvCyazaE7ar56R/XiPhiGuFH c3PmMeVoSkCTR3QZypYlCnO/394JhMy+wlAQZTESIsanxQhazg3KxWprCRMGTVWtp+Fk NDqCAc64VZO2VIWOW6y5sxxriEj1oZiQGoatiZsBiwWQQBgyks3Mx4eT4NtZvphs5PUK 4P+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GDErt55E; 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; 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 q16si6175286edb.388.2021.04.19.04.56.38; Mon, 19 Apr 2021 04:57:01 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=GDErt55E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238722AbhDSL5E (ORCPT + 99 others); Mon, 19 Apr 2021 07:57:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233586AbhDSL5D (ORCPT ); Mon, 19 Apr 2021 07:57:03 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BFA2C06174A; Mon, 19 Apr 2021 04:56:32 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id o2so12369435qtr.4; Mon, 19 Apr 2021 04:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=geHbG37dG66IVQ8TphiJdyvokhoZACxqTO6eQyQepdA=; b=GDErt55EFDad6hclq6Zft921T/o/xr4n85l668ZNrFIzQsX+2XmF3E+0FjCCQAMpvt 6a65atxH3OvHVdUegPgSsiobPHngawRR8MBTMs9NlZrUVJlemSknLFKHAMUml44mfash 07Td0smiBon29XVPxAGWR2RcpWeoyehl8I8iO0hzIyVME9J3SeDltSQ4xwHMjJRd5XQy vxLTN4VhovrmnRtsLRzyyUGIL3MtMvoKySeZk6UHhwyqSUk9cidAyU8EW0SptNGAkQ+j D5Mi8DruCaKdV3j3GX10bPyUMX543bbx89KiYks6klH80o+MovgNXNWTH+xUk7MWYWWn rLFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=geHbG37dG66IVQ8TphiJdyvokhoZACxqTO6eQyQepdA=; b=enZv6Cs9lHnIGw8Q8kIHlB6xmJRRBIlDwHNw8+ZLfRZtNhI0/svXVernBs/3WcizSD sOHzw7NiMhBlnUanuNySlkqBmx9z8i72vKNA9Cn8xnC4UpS97x81Ac0KCyev9MHNlQFI MWFExgqN1uxhSz8f4mhkwK1Rqx1u5+6e8sZi6EITPUnizd5wDFblmkKwfGPOMFI2aNJt 9H5hNfHb08rE79dU8bKDHUAaOCv73dCbnOf913nHMO8b2C0Zii3w1KNeK32bXgTvUP0v hUJrqZ1H2ZuY1qeSVx5poNCyyCsiL8t/i8+H/zSr0oo6ViFYdC+uV0N4qeWv3Cbyz8ai nxqQ== X-Gm-Message-State: AOAM530xylUppG9jhCHObiLV1VmtKK1PujwilJDctjsjxP2FJTG9PZLI 75MCI/kJcYQeUQoPHBpZM9LAkh9pgV0= X-Received: by 2002:a05:622a:88:: with SMTP id o8mr11589245qtw.39.1618833391371; Mon, 19 Apr 2021 04:56:31 -0700 (PDT) Received: from ?IPv6:2620:10d:c0a8:1102::1844? ([2620:10d:c091:480::1:1b53]) by smtp.gmail.com with ESMTPSA id p21sm7458401qkp.95.2021.04.19.04.56.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Apr 2021 04:56:30 -0700 (PDT) From: Jes Sorensen X-Google-Original-From: Jes Sorensen Subject: Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang To: Joe Perches , Kalle Valo , "Gustavo A. R. Silva" Cc: "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20210305094850.GA141221@embeddedor> <20210417175201.2D5A7C433F1@smtp.codeaurora.org> <6bcce753-ceca-8731-ec66-6f467a3199fd@gmail.com> Message-ID: <55e04b5e-9ec5-6a9c-7381-024c4bf11c6d@gmail.com> Date: Mon, 19 Apr 2021 07:56:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 4/17/21 8:09 PM, Joe Perches wrote: > On Sat, 2021-04-17 at 14:30 -0400, Jes Sorensen wrote: >> On 4/17/21 1:52 PM, Kalle Valo wrote: >>> "Gustavo A. R. Silva" wrote: >>> >>>> 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 >>> >>> Patch applied to wireless-drivers-next.git, thanks. >>> >>> bf3365a856a1 rtl8xxxu: Fix fall-through warnings for Clang >>> >> >> Sorry this junk patch should not have been applied. > > I don't believe it's a junk patch. > I believe your characterization of it as such is flawed. > > You don't like the style, that's fine, but: > > Any code in the kernel should not be a unique style of your own choosing > when it could cause various compilers to emit unnecessary warnings. > > Please remember the kernel code base is a formed by a community with a > nominally generally accepted style. There is a real desire in that > community to both enable compiler warnings that might show defects and > simultaneously avoid unnecessary compiler warnings. > > This particular change just avoids a possible compiler warning. Please go back and look at the thread. This patch fixes nothing, it mutilates the code by introducing non C for the sole purpose of avoiding to work with the Clang community to fix their broken compiler. The author of this patch ignored previous feedback and just reposted the same patch unaltered and when it was called out, the answer was other people was fine with it. None of the issues raised have been addressed, so yes, that makes the patch junk. Jes