From patchwork Sun Jul 28 23:53:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matteo Croce X-Patchwork-Id: 11063111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4D61F912 for ; Sun, 28 Jul 2019 23:53:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D0DC286F9 for ; Sun, 28 Jul 2019 23:53:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B8A028720; Sun, 28 Jul 2019 23:53:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D33B9286F9 for ; Sun, 28 Jul 2019 23:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rbP6QDNiAcuABo6zqVH/4hWTRn4dROEMigaaP1aA/oc=; b=fCVTFSUn+OWCXv SHnIheSIqHNFciFlkhSWeDjRnI9Es0XaeXfsf0ks20EimYz2XtxmyEcscZ4+nuXqq1ZMCDg9i9o8B jt3/MDGssHirCtQ1/KzrjrmwP5CvnSL8NaDVjtFQJcdRC8P5asJAa424WlTjS0QkSdI7eALMRXmM0 hkF/sYrLn0895O2KmBKjVaAv1onv6ncqKT2ItJeVDsJfweIwhlALHu7wMUP1FIPj1cIxVEbJZwwu6 kGPnrWCV2eey5aVAFPjZYy/27kYXQ7ByhQdk+kc+R6TIRfLiCZFsKcDF8zqqEiOcX+9xlZyqgq9tM IpUtLh+pmESXvdWcxs4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hrsyl-00056N-LY; Sun, 28 Jul 2019 23:53:27 +0000 Received: from mail-wm1-f67.google.com ([209.85.128.67]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hrsyi-000503-Q0 for linux-arm-kernel@lists.infradead.org; Sun, 28 Jul 2019 23:53:26 +0000 Received: by mail-wm1-f67.google.com with SMTP id w9so41784432wmd.1 for ; Sun, 28 Jul 2019 16:53:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tvo/EwR/TGSGrQyzo/cMXEKKXBvLMa9Iahv6vvH3r34=; b=EFMeY9XNsgDoZzh+4bLpv2ukCXXbwcyoBOvKO8jqHTaxwNh9i9al1b9Z7fDV18dtwq R577sMjWOXMVUfG+FUU/5n1RdHHuU3WoRlLdNCeojNmgEdyZj5U1J/0aq0Lr58xlx0In ZsqSCcNrP6x6750dfc6v2z/tUBJYQvXFUbR/I6OmjIZ9f2zY6GvC1Z0SV9IXFxyWkK/q 1u3nidtPCHVbSAX0GqmGFhmCXwg4g3eLdO18HUibs6DeM9km4XLzIirBsHsmDNh/gL+U H16iJhbzAx4vaFv0URGyEkibEhbD6cDs7IX6IdKG0k/0nbXfyX/J3x1Qq3xsI08aZW0F 3SaQ== X-Gm-Message-State: APjAAAU6fN/aJDxHZFXiHRg8Cfqk5xl5ufq0oD5JfDIOHTjbFTzlZCcE eD3Kaw7RpPeET0WBIs0tKUwChjxgxqk4VA== X-Google-Smtp-Source: APXvYqyrf0yR/xR9XDHVAOLqyW+RE3cSUi27Kfx+HycDIwlyHe4GqDgHnO+RWx5o6/Hn29vCCquabw== X-Received: by 2002:a05:600c:34d:: with SMTP id u13mr69665580wmd.48.1564358003263; Sun, 28 Jul 2019 16:53:23 -0700 (PDT) Received: from mcroce-redhat.homenet.telecomitalia.it (host221-208-dynamic.27-79-r.retail.telecomitalia.it. [79.27.208.221]) by smtp.gmail.com with ESMTPSA id h16sm63516938wrv.88.2019.07.28.16.53.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 28 Jul 2019 16:53:22 -0700 (PDT) From: Matteo Croce To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm_pmu: mark expected switch fall-through Date: Mon, 29 Jul 2019 01:53:20 +0200 Message-Id: <20190728235320.8600-1-mcroce@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190728_165324_848704_58F1170C X-CRM114-Status: UNSURE ( 8.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Will Deacon , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Mark switch cases where we are expecting to fall through, fixes the following warning: drivers/perf/arm_pmu.c: In function ‘cpu_pm_pmu_notify’: drivers/perf/arm_pmu.c:726:3: warning: this statement may fall through [-Wimplicit-fallthrough=] cpu_pm_pmu_setup(armpmu, cmd); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/perf/arm_pmu.c:727:2: note: here case CPU_PM_ENTER_FAILED: ^~~~ Signed-off-by: Matteo Croce --- drivers/perf/arm_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index 2d06b8095a19..3eb711066a22 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -724,6 +724,7 @@ static int cpu_pm_pmu_notify(struct notifier_block *b, unsigned long cmd, break; case CPU_PM_EXIT: cpu_pm_pmu_setup(armpmu, cmd); + /* fallthrough */ case CPU_PM_ENTER_FAILED: armpmu->start(armpmu); break;