Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1859923pxb; Fri, 5 Mar 2021 01:08:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtd5D4N9S4N2EyV/c/3wN73RbxHQYj9luVFKllnrtHoiyrTlf/CmQsFAjn4/HbCoMysNwh X-Received: by 2002:a17:907:d8a:: with SMTP id go10mr1468923ejc.46.1614935319499; Fri, 05 Mar 2021 01:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614935319; cv=none; d=google.com; s=arc-20160816; b=kLF4gLm0pZwkM9S7W4qV5oIvaWQtxAtomZ+izv2RgXAEt4NU02BjmyANzM2S3G+Fvf X9piQg7lIho35qjdBm+vTRKznEVt+azCavjnRWUggbTc24ppokPco3CImq/ViONjJTjR PgI8FIFizNk4doDYp5WkbHkPZ95Cp9x6vvidJKnOXoQZoZFTCwkxPfu/Dpo1o3jaFCOf ca1fe9EEyN8lMyye7wcDMIVOn5PVSjGz+/5SM48FbCi/5a1cqebcXUW+hboo8w53/aVo 8MynAToYnGr7wKALozu9NvMIzeVGRTaMyZBjLB9avCB7lfxf4q55SsmMdNawxUTJB2RO cGMQ== 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:from:references :cc:to:subject; bh=JCJKdOASxuiLosWu29yCxCsaMNAAypz/cBNyW0kegYk=; b=OslcuixbWdTGKyPb70/r/s89Jgi58Y4FjVoZdqbftROsMK/DAbFCDs3G+BYPLT138R BW2myf9LksEy/7p/AKfRJnBSTRW/pG/8vkS7BqobXCAy8tc9cxeHd6UuQiLKV3PjrJG4 x27fqSWzqCrhHlrPtdB+yaAcnO1QqRbjMA3LTfpQ2C2SDSxq6qG4Z5y9ra1tKp5alzlb A13FzEZtHHSS7l77B3Z4mgGLZL9+/wOaWZaTOaC2gLQsLrzBvgWlQcsVgOGXHGW3/uMj MspJ7aDgSL/xVUoKPRyXe89VYEju6CSzd6fcErmV0kyBWaoGfgGNAXvIjg18FsXunPXK 2T3g== ARC-Authentication-Results: i=1; mx.google.com; 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 gz11si1066143ejc.745.2021.03.05.01.08.15; Fri, 05 Mar 2021 01:08:39 -0800 (PST) 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; 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 S229829AbhCEJEZ (ORCPT + 99 others); Fri, 5 Mar 2021 04:04:25 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:51989 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229631AbhCEJEB (ORCPT ); Fri, 5 Mar 2021 04:04:01 -0500 Received: from [192.168.0.2] (ip5f5aea8b.dynamic.kabel-deutschland.de [95.90.234.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id BE07820647914; Fri, 5 Mar 2021 10:03:58 +0100 (CET) Subject: Re: [Intel-wired-lan] [PATCH RESEND][next] ice: Fix fall-through warnings for Clang To: "Gustavo A. R. Silva" , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Jakub Kicinski Cc: linux-hardening@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org References: <20210305085257.GA138498@embeddedor> From: Paul Menzel Message-ID: <833549f5-a191-b532-50bf-4ec343c48dd0@molgen.mpg.de> Date: Fri, 5 Mar 2021 10:03:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210305085257.GA138498@embeddedor> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Gustavo, Thank you for working on that. Am 05.03.21 um 09:52 schrieb Gustavo A. R. Silva: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of just letting the code > fall through to the next case. It would be nice to have a short summary of the discrepancy between GCC and clang, and it was decided to go with the “clang decision”, and not have clang adapt to GCC. > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c > index 02b12736ea80..207f6ee3a7f6 100644 > --- a/drivers/net/ethernet/intel/ice/ice_txrx_lib.c > +++ b/drivers/net/ethernet/intel/ice/ice_txrx_lib.c > @@ -143,6 +143,7 @@ ice_rx_csum(struct ice_ring *ring, struct sk_buff *skb, > case ICE_RX_PTYPE_INNER_PROT_UDP: > case ICE_RX_PTYPE_INNER_PROT_SCTP: > skb->ip_summed = CHECKSUM_UNNECESSARY; > + break; > default: > break; > } Kind regards, Paul