Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp74866pxu; Sat, 21 Nov 2020 23:55:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJznTSsbs8TF3V1VFqNlSWuFZe7X5yp8gSq7d7sT5xtYCpUWBWjuSRx9H57Mkrp97YAINTDj X-Received: by 2002:a17:906:5a97:: with SMTP id l23mr38409498ejq.232.1606031714395; Sat, 21 Nov 2020 23:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606031714; cv=none; d=google.com; s=arc-20160816; b=xLA+qzvD1XXfU0GLLLjn64JEu1CudPv/ukq0C2fIOMIfd+VcuYEquIlMTu22jyIx30 5CU3QPchoRqHGBcbt89rPyBhrS8IQXRSuTVRpnt2l3mvJJAwZnmM16M/hlOqA+ilBvvE qGDgvjLZ0cTIiBpwFun5QEiM/micrwVnM/6o74dQwHrX3dmHBe76xNkSKALV5ZEWlUZS MHkGJGdwF44yq8sZThmM/fkGlKCVBUCAWBykgEbqFydDbTp6IEW86Vr9kVmh7+5XarzD PRfU8gWVNYXv6POmhIhJRtXRAYkeFpbBf3i2WPOsp5odsfI/8L+UyTIn8UvA1zCI/T9v 61Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cmv8Raua+1tSKqWDryWdApjoa82BkHH+3G4jECAsXHY=; b=cIQVjDtWyDtsyp5iGyqIW5Wdzrk16c3iDK/pR5BvnPVGCdd9RtRXgEw8CfA7vgIqzG mHmuZS+KOiWyIbHXsEz99EzpZ2cdmUBq3tr2egVCtASnzpj4e4JrrYvUC/S9bLL+HbUV 4aA1zz3qUT2rTIh6dGmeAWMVkyUQLMFDfzIPNk7uewUSBpjK5yuL/3JVLpQZcB9QLcmu gFNP7k9w9DfJ600YwU7+NxtiMtJnORyCOx228nUDsmGkgGhmwJNGbYhZ+avMeWNpcJYj n5d2BZDEaHJcnDJA4T1MTVF5ab1wmHgyYboDYSuHILTsvKjRHUWgUHsoZXYJlszliiMs Qfmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=ED9ZI38G; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 g15si3152710edm.148.2020.11.21.23.54.50; Sat, 21 Nov 2020 23:55:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=ED9ZI38G; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727323AbgKVHym (ORCPT + 99 others); Sun, 22 Nov 2020 02:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727317AbgKVHyl (ORCPT ); Sun, 22 Nov 2020 02:54:41 -0500 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0ACDC0613D3 for ; Sat, 21 Nov 2020 23:54:41 -0800 (PST) Received: by mail-yb1-xb41.google.com with SMTP id e81so11366582ybc.1 for ; Sat, 21 Nov 2020 23:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=cmv8Raua+1tSKqWDryWdApjoa82BkHH+3G4jECAsXHY=; b=ED9ZI38GM/y7HDpqvSCnHe7tcnjJBEwtQEWHzA1E4fmp26kYAJuZCcY5loygQ0Vw2b I9Rx1LfdG6Xzs/BUmw4dSQzNYuZyCyHbTb80hVACjZAIjlggQ33hjjYme4u/mFppXG/S GLNGkZDk+VFlOnxLNi4l3NDKnrclj5eqhRD4z0GUs5dbLY136oaoVN4SKSdn4XD/zA7k rMH44mXzrKDZboFuiwQHfpoeQEQe1jHsuNTXkJ3DJ+ArfjB5DA5TaPFzsPKhbI9G3d8s Uyfs0bN2fbLADGO7/dV5W5rO/KMdyLcq6tuexmFsmTnyG7Ci2xHGPe1+o6A20d8jWB9X q2iA== 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:content-transfer-encoding; bh=cmv8Raua+1tSKqWDryWdApjoa82BkHH+3G4jECAsXHY=; b=Ol4Bjkngd+l0OgB3T4HH4TQLxwDJKVc18xs+ycx+vts5otjAlSDN8jNec2fUl2d19O 0rrxeiztca6pxqh090nfP5hQ/1YhEswzOigiK88HqOd/GYZvvylYz9tYIkDbvranXctQ NwUS2dhAxe2c54HPX11dy0fdfWWsRc6p1ErruE6LnDtDvl1Esjoht3MHt3iJemqmbu/q dpvV5yZfExDyNsjM8I8koTXoRYbuSDtzFQhISaO9KrDF7rN0bq+E5Cd6PvqWflaEm3xn sQFMYO/tHbw/m1qf4DtAUQIIGkFoLGMStDID/CWtB5yTHXO27SuUlrKDNFu82AEUletX mzyQ== X-Gm-Message-State: AOAM530dOdmGLG+dhOa+IST7hIhg+w0UCkmSuc/fs1TS/8H3AGuG2wtf nkwYpMwPNB2YeoM+hYnQNxnzVHtR30nMkp6bnfLmaA== X-Received: by 2002:a25:2f51:: with SMTP id v78mr36598790ybv.235.1606031680454; Sat, 21 Nov 2020 23:54:40 -0800 (PST) MIME-Version: 1.0 References: <7c424191001cafdc7abd060790ecfcccdf3dd3ae.1605896059.git.gustavoars@kernel.org> In-Reply-To: <7c424191001cafdc7abd060790ecfcccdf3dd3ae.1605896059.git.gustavoars@kernel.org> From: Gilad Ben-Yossef Date: Sun, 22 Nov 2020 09:54:29 +0200 Message-ID: Subject: Re: [PATCH 075/141] crypto: ccree - Fix fall-through warnings for Clang To: "Gustavo A. R. Silva" Cc: Herbert Xu , "David S. Miller" , Linux Crypto Mailing List , Linux kernel mailing list , linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Nov 20, 2020 at 8:34 PM Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding multiple break statements instead of > letting the code fall through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/crypto/ccree/cc_cipher.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_c= ipher.c > index dafa6577a845..cdfee501fbd9 100644 > --- a/drivers/crypto/ccree/cc_cipher.c > +++ b/drivers/crypto/ccree/cc_cipher.c > @@ -97,6 +97,7 @@ static int validate_keys_sizes(struct cc_cipher_ctx *ct= x_p, u32 size) > case S_DIN_to_SM4: > if (size =3D=3D SM4_KEY_SIZE) > return 0; > + break; > default: > break; > } > @@ -139,9 +140,11 @@ static int validate_data_size(struct cc_cipher_ctx *= ctx_p, > case DRV_CIPHER_CBC: > if (IS_ALIGNED(size, SM4_BLOCK_SIZE)) > return 0; > + break; > default: > break; > } > + break; > default: > break; > } > -- > 2.27.0 > Acked-by: Gilad Ben-Yossef Thanks, Gilad --=20 Gilad Ben-Yossef Chief Coffee Drinker values of =CE=B2 will give rise to dom!