Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp404124pxb; Sat, 6 Mar 2021 03:46:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQGW5qjcGKJE4iKDt4HxzhAruRqvCnDPxYfHrp5BGdfPA1tnyIFpQxgwZjRgsRVZUhqLuC X-Received: by 2002:a05:6402:5244:: with SMTP id t4mr12468678edd.87.1615031186768; Sat, 06 Mar 2021 03:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615031186; cv=none; d=google.com; s=arc-20160816; b=Tkn4/uyDd2WgkRh56kQmcUKuTOMEl7yDgS+hhG9iPbfSO2VDs+zWDO4ouAFS1b0LGY H7YLq+woKQRTzR2GaZaWiEfVvY5rTmbvFRAzG/HicHfVuRbq3E5QnJBcxC7d/sY9EXhZ wAgLHugvBlkWhBq08ktOLCP096rsJTwDH9EUAGNw3BkrfvzU9U1kyzgp4GSayMPO1mGW zCVI9RIuPjQ+DrQR6H+LRz0GqpXtP6mYhpI818Rr2OdIUcsvSjTl85kTOPW/QqqAu8vR WdHTW+ff+vC7vbDrN42hasHGnwWrP4r836WyvYq/2M7fII+gxLwZ5uBfLnKYEsUPD2Go TpiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sdpcZU9UbGhIveFxOTcwgmDWBEnjo5ETf14V+hth5AY=; b=skEMPdDhp+OX88HF1mdUpxhOLos9VMRoor4+dg9EX8YV0P8oVDXwLEPtsK6aG32wK7 5/Djd+GpSUhLfvB9ZTGm9+u6jSMUMCulUpfpjycSCEc4uvJq6e3auPV7clR8kAdzFNSe vBVGLls04gtsqi1/OdSqnYPdgtWimA1hYwXSK1qLzbos2QeaAAd4uEhIbhu6Nb4Pr+fj K7kHJpduXRnhJTvZceRaAqqmH7rMiqHdbp6P8mIKWdZa+kQtS0PiFZH++LIiV1oZAOIs f9B9LJBDB8lFu5W6rJJ5BoYfEVcm3LOPKDfoOVvYMvHxgzIYA2I6xz4o2gJvkczK9lii Pa6w== 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 n19si3489729edq.224.2021.03.06.03.46.04; Sat, 06 Mar 2021 03:46:26 -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 S231274AbhCFLmq (ORCPT + 99 others); Sat, 6 Mar 2021 06:42:46 -0500 Received: from ms-10.1blu.de ([178.254.4.101]:40518 "EHLO ms-10.1blu.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230390AbhCFLmZ (ORCPT ); Sat, 6 Mar 2021 06:42:25 -0500 X-Greylist: delayed 3763 seconds by postgrey-1.27 at vger.kernel.org; Sat, 06 Mar 2021 06:42:24 EST Received: from [37.209.98.109] (helo=marius.localnet) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIULQ-0004nW-5d; Sat, 06 Mar 2021 11:39:36 +0100 From: Marius Zachmann To: "Gustavo A. R. Silva" Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: Re: [PATCH RESEND][next] hwmon: (corsair-cpro) Fix fall-through warnings for Clang Date: Sat, 06 Mar 2021 11:39:35 +0100 Message-ID: <107682713.BXpLqza3Di@marius> In-Reply-To: <20210305095359.GA141682@embeddedor> References: <20210305095359.GA141682@embeddedor> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Con-Id: 241080 X-Con-U: 0-mail X-Originating-IP: 37.209.98.109 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.03.21 at 10:53:59 CET, Gustavo A. R. Silva wrote > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Acked-by: Guenter Roeck > Signed-off-by: Gustavo A. R. Silva Acked-by: Marius Zachmann > --- > drivers/hwmon/corsair-cpro.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hwmon/corsair-cpro.c b/drivers/hwmon/corsair-cpro.c > index 591929ec217a..fa6aa4fc8b52 100644 > --- a/drivers/hwmon/corsair-cpro.c > +++ b/drivers/hwmon/corsair-cpro.c > @@ -310,6 +310,7 @@ static int ccp_write(struct device *dev, enum hwmon_sensor_types type, > default: > break; > } > + break; > default: > break; > } >