From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753737AbdJMDt7 (ORCPT ); Thu, 12 Oct 2017 23:49:59 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:51159 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753473AbdJMDt6 (ORCPT ); Thu, 12 Oct 2017 23:49:58 -0400 X-Google-Smtp-Source: AOwi7QCugDAIjnyJ1DLBelCf02v6PUnAl5x39V456Vks/uOZxZTPsuvqc0I8uI1tLtpZBC1OJvcRdw== Date: Fri, 13 Oct 2017 09:19:55 +0530 From: Viresh Kumar To: "Gustavo A. R. Silva" Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: speedstep-lib: mark expected switch fall-through Message-ID: <20171013034955.GC31427@vireshk-i7> References: <20171012224103.GA18340@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171012224103.GA18340@embeddedor.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12-10-17, 17:41, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/cpufreq/speedstep-lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/cpufreq/speedstep-lib.c > index ccab452..8085ec9 100644 > --- a/drivers/cpufreq/speedstep-lib.c > +++ b/drivers/cpufreq/speedstep-lib.c > @@ -367,7 +367,7 @@ unsigned int speedstep_detect_processor(void) > } else > return SPEEDSTEP_CPU_PIII_C; > } > - > + /* fall through */ > default: > return 0; > } Acked-by: Viresh Kumar -- viresh