Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1885293pxb; Fri, 5 Mar 2021 01:57:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7CP8VPIjw2SpWsN1q/6sWz8z5lFyBNQwHYf293JrRTlUiVvtl5qbhjVrwRE6MSD22IQLX X-Received: by 2002:a17:907:2642:: with SMTP id ar2mr1554612ejc.145.1614938269940; Fri, 05 Mar 2021 01:57:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614938269; cv=none; d=google.com; s=arc-20160816; b=WQZs9c6dr10I65u8SGdROiLK7Ym1DpAPA9EIcUChEs7pKWtEQoVJgwYPmzIJv/ymvN lmc9UsMGP24dV9fZx6Qjwg0z5YZ8wBIlynHsy2MLmGrtdnPlBkrVqMKoE6bc9qbF8jFv U5anxqmAL6x612YQOBy8OnGBISOeYNkrd/v9pCIYRghTQjfzJJZwBiiSJn9AoykBvPLv WAbOBDgPnQ9gc2zqfNXmJvfw4IFDXypWslok8aqvlSGX71bobAbhf3E+tr3vAbq1d6zX lE65xNbKbuiJ9PPOayi0VtGYHo23sLeG61m3dMZMdlWEzCInaCvIoiP0/u/AeZORo3fa kRfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=zb3vTEjDhD16LmDZDa2s2lviPkCLJqbKlJ8S6CTF410=; b=RcSXPtkgWc9R2nGCzfiX7TInVmcDH7QlVEz3AXjZI4vKMBX+8y7MAmURpQr/QsNKCL eCK0bxN6HkbNHQ/gN7tVrUG6xGq+B7+IBMmvN5S450DbRtSivtdMNK9ChnQRQKLAL2cS 5U6UNh7wetcvD3oux/pnrW0L3iAUWO1Ml0C0I0t0hTeABEeDoenEoHfPzgRLIYrV7PQt AqWJ0MXoC1k+VawAV2kHUC1fMxGlRNeEyPF8kejA9h9M8FaXAFc9WCobuAlXsyB8D79l H3BDbfKYSXBAcL5WaNImkk4VSvLmnqUmHNwJJAZyg7w34kNIsv57V767h3a/ZvcRHKPM IM5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WGEdAGRu; 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 i17si1345407ejo.365.2021.03.05.01.57.26; Fri, 05 Mar 2021 01:57:49 -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=WGEdAGRu; 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 S229801AbhCEJyL (ORCPT + 99 others); Fri, 5 Mar 2021 04:54:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:43708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbhCEJyC (ORCPT ); Fri, 5 Mar 2021 04:54:02 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E48464E6B; Fri, 5 Mar 2021 09:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614938042; bh=EDWczzYjws+UwHiOw+guGGb5YTRT6q0FhhbiEi73sYA=; h=Date:From:To:Cc:Subject:From; b=WGEdAGRuk3ErvLHIAPXCtcYFC26hvLh2O2woRcKq7laRLWLheeQQQas/Y0rbYZT4j R9kgxYxXoQ/Vhsc28b27KsHNe76XAN6zGpfzOWxKBJNkYj7ROymtWiS5Z/4AGfVkMX cHtf94XdV9JBnSlgbtuDhunZaz5DEHRsYDkmhIofIgxYUISL3g+3CdyFJMiTVGIAKJ v20pQo2iwr+isLhatOsFgYoB1tEuM+lf71eDNi46zQicbxK+O3kOn4TnaRE7QVLprJ P4BA6/3qIKG2BdKatpAoqNFYP8PXjP25Du1nTkp3hUa0mJ3uFlLeWAsUuFlBtdqv12 eA91agR2Tl7ww== Date: Fri, 5 Mar 2021 03:53:59 -0600 From: "Gustavo A. R. Silva" To: Marius Zachmann , Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH RESEND][next] hwmon: (corsair-cpro) Fix fall-through warnings for Clang Message-ID: <20210305095359.GA141682@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; } -- 2.27.0