Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2883447pxb; Sun, 15 Nov 2020 22:32:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnOwoDNxuT7ZGxflwtSuWVbd+rTZ66xmDS9cl3OQO4ttjdKwFqLOle+TC+44WWfhlfvr/5 X-Received: by 2002:a17:906:8142:: with SMTP id z2mr12793063ejw.30.1605508321920; Sun, 15 Nov 2020 22:32:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605508321; cv=none; d=google.com; s=arc-20160816; b=BE1DGc6i+jIiL7tw6X57vnlhmdf/fF8Ad4S3THLpMaACAcg4uUW8gGHIEXpidDUAb6 lpP02PpGOAKWMr5WqQCv4kDMq6s3EwjAGrUtLjIhi5gJCIUzHR+TL0905rWmyW3ecDDa hSnon5VvQvP4PfaGsGBlsvi9qZtGqaM6tDwJCAjuZhqI7FRDLb+VYb/PA9AvhikbE4Dh d/sTeYRqIG9p2VX5PPFz2NzvWZWFKtHp1iAKSQRBzfIgujHA21paNwClqNhvPX3R3toB fArK0ba2Ji45+2lWWEkQty6uJswMhtPXGGJwxQTdTNZcVK+u4VBlqTE9pekSfMCq8B09 A/Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2D8v1s0z6J/N9Pzon2O6hFYXfB0YUp7JPXz3oX3L87U=; b=W0IxPz2bewV6vpRu/6enh86y3nUUZsMQMrtRBDEnOaCr8m2deXnoMc8nMM4MvZZO8z /SsfsY5FMT3pFv8uZU20G4EtI0dYlUh52nzlAjPGFU4O8l+ad3zu0/9ODtuouF6Lh7yn O139bLvLKeywNxeM2e7aOTuiy+j3k4TJYo/a9PYNLOg6wAaIGTLeRvj3mEYxaPQDwEPU +rCKgMRTAgceCBcroA8JditjmdFCQm1oUdj94LrAQ1e+SHExkpZdKFxN1y8ByYJRN38n QhNZ881+Uv5pnCVDkBadzJ5g2on44cIg7DDVFQL0cpnmepvtcSEqzN7TaIzQplraNhq/ fbpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="h/By4HRj"; 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 pk19si10474819ejb.413.2020.11.15.22.31.37; Sun, 15 Nov 2020 22:32:01 -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=default header.b="h/By4HRj"; 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 S1727087AbgKPG2j (ORCPT + 99 others); Mon, 16 Nov 2020 01:28:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:36322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbgKPG2j (ORCPT ); Mon, 16 Nov 2020 01:28:39 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA9FA2222E; Mon, 16 Nov 2020 06:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605508118; bh=ifAij3FAEK42X7Q6lRO5bIl6Sf/1iispS856xlGV+mI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h/By4HRj7MEI9eIBGeZlVrsQCpDjddpjQZJsYuCoIyMy5AZkH8t2ctGAGKYgnGXXl uBRAKbN1JqXdajq0CPmirWBTrRze6xt1o+raLTAXe0gz6wV6/yqggjhLbdSMASaexy AoMNIdOYyLsUj95SfIkypWWvw4sD2X0tdWgN4BPw= Date: Mon, 16 Nov 2020 00:28:32 -0600 From: "Gustavo A. R. Silva" To: Nick Desaulniers Cc: Nathan Chancellor , Miguel Ojeda , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , clang-built-linux@googlegroups.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] powerpc: fix -Wimplicit-fallthrough Message-ID: <20201116062832.GC7265@embeddedor> References: <20201116043532.4032932-1-ndesaulniers@google.com> <20201116043532.4032932-4-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116043532.4032932-4-ndesaulniers@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 15, 2020 at 08:35:32PM -0800, Nick Desaulniers wrote: > The "fallthrough" pseudo-keyword was added as a portable way to denote > intentional fallthrough. Clang will still warn on cases where there is a > fallthrough to an immediate break. Add explicit breaks for those cases. > > Link: https://github.com/ClangBuiltLinux/linux/issues/236 > Signed-off-by: Nick Desaulniers Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo > --- > arch/powerpc/kernel/prom_init.c | 1 + > arch/powerpc/kernel/uprobes.c | 1 + > arch/powerpc/perf/imc-pmu.c | 1 + > 3 files changed, 3 insertions(+) > > diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c > index 38ae5933d917..e9d4eb6144e1 100644 > --- a/arch/powerpc/kernel/prom_init.c > +++ b/arch/powerpc/kernel/prom_init.c > @@ -355,6 +355,7 @@ static int __init prom_strtobool(const char *s, bool *res) > default: > break; > } > + break; > default: > break; > } > diff --git a/arch/powerpc/kernel/uprobes.c b/arch/powerpc/kernel/uprobes.c > index d200e7df7167..e8a63713e655 100644 > --- a/arch/powerpc/kernel/uprobes.c > +++ b/arch/powerpc/kernel/uprobes.c > @@ -141,6 +141,7 @@ int arch_uprobe_exception_notify(struct notifier_block *self, > case DIE_SSTEP: > if (uprobe_post_sstep_notifier(regs)) > return NOTIFY_STOP; > + break; > default: > break; > } > diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c > index 7b25548ec42b..e106909ff9c3 100644 > --- a/arch/powerpc/perf/imc-pmu.c > +++ b/arch/powerpc/perf/imc-pmu.c > @@ -1500,6 +1500,7 @@ static int update_pmu_ops(struct imc_pmu *pmu) > pmu->pmu.stop = trace_imc_event_stop; > pmu->pmu.read = trace_imc_event_read; > pmu->attr_groups[IMC_FORMAT_ATTR] = &trace_imc_format_group; > + break; > default: > break; > } > -- > 2.29.2.299.gdc1121823c-goog >