Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2070523pxb; Mon, 8 Mar 2021 13:19:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSFsu7R+NhRQN1zd66RFxXTzwJV+WIb5PE/kZ8LpyL004JCTe7xr50jq/+NXnbqY2K8qmW X-Received: by 2002:a05:6402:1342:: with SMTP id y2mr525140edw.285.1615238369061; Mon, 08 Mar 2021 13:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615238369; cv=none; d=google.com; s=arc-20160816; b=esLsgnRfD4D0k/3VPW6bKGz4YhjS25XktHsvkuFkNRy4ghsf1xqI2HwQF3ZUreob4a iA+u4toXJJHPs0+6kApcI622eTiWT8McGBeOmQOg/89SNiO+ReVAIHLa7tk4qzDUEaH2 cUzta8QSHwQN8bSaET9/JUmCKzm0uEaTPn89Imgxr3AXor85GuvdQwXBYnWvJNfK1UB0 e2MOnRErgBzcXyWmGOaMmGaRm9ZL+Qj3uN1C13IaqovPOmXWcLtps5oueW53zvUi9ZGE RVCEAeS6f5PUN07mUXCECOtaKQjolDiFEXaypsHMALM0ogxIyRcoAUEiYvcSf1cmi4fX nh1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4iRcOJJWAWBcGpPUNGtaA9W2chSPT7/jfg4ePEZO8SI=; b=PZvHl6w3rUVYGUMLBokJvPDV1pFyJJSzlp+ZimpgpUZnoTaN8wxUtZA7baq8FJddQI soQyeSRdmTyeMLnTSIWFe1PGxMSeLOGQPAZYL+3T8hdxJNj8L2MTLmYTy1ywF7HjZlcf tItzVbO+1cZ+yo2cunSJ/6Rm+EVIswoaRqkd7/BHrRM65qvF/XTv+lx9n36GKLCesWxn vTNsIeQB1z7n3ItNsFD0wcdhsnCcKkwiy0Itxgz8Fqxtl8ZaxuzOKhH/mjBwh6qnBAQ/ l15jw0DKkjYNxB9KSrg7XscEF+OMX7Ge2ZQ7w8cX3BtlviKMi6CDEbCum9W7oJluR9qt 4LSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vp5XNZZW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si7625811ejg.578.2021.03.08.13.19.06; Mon, 08 Mar 2021 13:19:29 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vp5XNZZW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbhCHVQG (ORCPT + 99 others); Mon, 8 Mar 2021 16:16:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:44776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbhCHVPf (ORCPT ); Mon, 8 Mar 2021 16:15:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 490CD64FA9; Mon, 8 Mar 2021 21:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615238134; bh=wgi4ixB+/HuhHipnwGcBia2Ldp0HKcclvEzilpijVm4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vp5XNZZWupcAon7ycuZxhO7fdD2GjZ8HsVG6KAu7YXzNE6CSumTw86o0jjNTElkGD rQYw5+VvLDkJDdLCYHkjpMowycO6SFULV4NTRwVwYYkc1IkQoybBhprFpFD/XMuorc i+fQGkTvzlJ1ITGbAGJ52+3bS7n9mpe40E9TBPWo9Wv++IadsEJi5UvyL8WviVu575 vwoE2yz0fVotco38m9DDWDpUIl2b8j0iJlcWw63XuStiKo+fnEmw+zss+NXLvz+IIu WsMe3eIfnTZNF9a0VB2m6juQNa4Qp99U3XR0wCrJinT6YRzgNsIL+r/Y5Y3rbvni/c 5JSH7Tp28mFWA== Date: Mon, 8 Mar 2021 15:15:32 -0600 From: "Gustavo A. R. Silva" To: Marius Zachmann Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH RESEND][next] hwmon: (corsair-cpro) Fix fall-through warnings for Clang Message-ID: <20210308211532.GB214076@embeddedor> References: <20210305095359.GA141682@embeddedor> <107682713.BXpLqza3Di@marius> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <107682713.BXpLqza3Di@marius> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 06, 2021 at 11:39:35AM +0100, Marius Zachmann wrote: > 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 Thanks, Marius. -- Gustavo > > > --- > > 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; > > } > > > > > >