Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2841314pxb; Sun, 15 Nov 2020 20:41:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyq64qjx+qFyz8LUm1UuSILt9queCLOE+0MEEaHgfKOZU5ukgAP+byFPposSfViobcaZwTP X-Received: by 2002:a17:906:3782:: with SMTP id n2mr13478996ejc.493.1605501673776; Sun, 15 Nov 2020 20:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605501673; cv=none; d=google.com; s=arc-20160816; b=wRSosEUq5tX4IATa8/I6gh3nP3tbDF6BULAmwxncqwR+PmvSglWHcSIK18HZKEasDp 0f6/ivGZ7gMyTj1Lgp8aMMRKCohDqAlIBEcadOltU8ZgAWQyV7UFB+bktiwk0CI+bnUG 4hF7XKIjJc+Gv8romSsFQI87VEPr8QLKuoVaWHNP6g+J2283O00cpMCTDaAtXr6Q8jy5 1rxz9ipaOFiixGdFShLqaLb4rQkiyOe+2QIZ/PsezAxRASH/3i27fpzdWe/jE1Db58nS dQYKPqsShEQPr4LkNnlNeV8VX7D6zqGoxbeh/Z3MrG2mDh7yPb7B4AfYjSgTkeZzSldd Nhxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=ewLDtC1Ll1+KhSOjBeNvFZ/A9hKRZKnELHCa/fqKz8w=; b=V9zDsUne0T5RiZNCzghoPu0JUq1KVLcUjGedB2RvW3Tccp05/ZV0jS/5jUs0H/v6Lr EXpvNBy4Ie8+GzG+qlGTP6HHQDSVnuuq+P50lna2DzgDJ//1yICDM4CbI6ybrSGkL7sg KGumXKpvYNwDXjeMheZSeEeHWrCCvNAMdtfVDOtWO8SK8lzTX//0FROn7jd7ehncJxM+ WUj8S8Vj41gEsmDi+UgRp9yGVodMZpyhaIYOH8+8JYT/MLgyaFJxOPjmn6+qe5Dta+X4 IMHzbq/yokikO5kwRA1fyz5DJF2MQZOSxrnJmtN5HH0wnRlb6f9HiHafW/Ci8/ZNuTKB /yQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=l7DYaprb; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si10607339eja.728.2020.11.15.20.40.51; Sun, 15 Nov 2020 20:41:13 -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=@google.com header.s=20161025 header.b=l7DYaprb; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727184AbgKPEfp (ORCPT + 99 others); Sun, 15 Nov 2020 23:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgKPEfo (ORCPT ); Sun, 15 Nov 2020 23:35:44 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473F8C0613CF for ; Sun, 15 Nov 2020 20:35:44 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id n186so19123584ybg.17 for ; Sun, 15 Nov 2020 20:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=ewLDtC1Ll1+KhSOjBeNvFZ/A9hKRZKnELHCa/fqKz8w=; b=l7DYaprbrYkeTfMwB9mrFYRhtwuwHnco7Fx6vSdDEY0XYSeLpNgDuo/LHBNJTtiXwS E9iO3krRelNApZKP2J7I70NN2lMSbnGdb+pHezFtoykV+h+pXJPr2AyrHCCjf5dLXlzA NF9+J1jPTZeU+5cwhV/wFDZrVfqB9hXH2FvTG/+W4hZFS4L2qY2gJEmP9fXUVRIIM52v CC6iVX6QH2RlIcdOSf6Zc7hTIiWrnNieDal+kt8bgJTtFBcAmlF/wiGl/wqjC/hOULTm B+DOiS2aPaQ62GFRUgn5ySeOH1U+s9x3Bb4vgE1fUskYPiPPF5tuKLIodkoijn+0rkbb y8bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ewLDtC1Ll1+KhSOjBeNvFZ/A9hKRZKnELHCa/fqKz8w=; b=aG9R6+QtADI9qKlNlR6aeCc+pLgbPLOb+/95zMCxtL7Qk1lFkzl6q6SpIl6wpAbm0q B5LmEloePXR6oQCb6r0RMabiX/5XJSPn+n7W53U9AFL4zq/u/wWeRFOYzeMVFSP9TW6e +NGd9hTOlJZdUsDm4Czx2TeHT4vFVsnaXCk5VC8mlWVn0yQfAHHQxxmVMmzEVyxDmYVC fp0PVaoN2FxiXz7v7I9J07kfy5BumVkU9MgAbdLB3mla2KvDO67IOl06eXThndr6wj1d q3f5qVxBlbRPV8nn5OHHh0h7a8PUZDd13HMlmGank2O1unHY+8YufXw35NMYxAtwjpCV BPwg== X-Gm-Message-State: AOAM531Ga8Q2j+Ej+EWM7QK4fya3DcEvTjzZzmJcp4NdGxlDBD94l2mt g6GUYhkVcOyjTs4ymWgIOWqmBvCEecbQkV3u5B4= Sender: "ndesaulniers via sendgmr" X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:f693:9fff:fef4:4d25]) (user=ndesaulniers job=sendgmr) by 2002:a25:640e:: with SMTP id y14mr15191892ybb.446.1605501343478; Sun, 15 Nov 2020 20:35:43 -0800 (PST) Date: Sun, 15 Nov 2020 20:35:32 -0800 In-Reply-To: <20201116043532.4032932-1-ndesaulniers@google.com> Message-Id: <20201116043532.4032932-4-ndesaulniers@google.com> Mime-Version: 1.0 References: <20201116043532.4032932-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog Subject: [PATCH 3/3] powerpc: fix -Wimplicit-fallthrough From: Nick Desaulniers To: "Gustavo A . R . Silva" , Nathan Chancellor , Miguel Ojeda , Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , clang-built-linux@googlegroups.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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