Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2747464ybi; Sun, 28 Jul 2019 16:55:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfgMg4vSXDvkQ8EeiV5w31PPWfEN5JQS8cRya7YMA8Ame5G6zXTo+cdToj5jLCY1YshNzt X-Received: by 2002:a17:902:2a69:: with SMTP id i96mr106084301plb.108.1564358143857; Sun, 28 Jul 2019 16:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564358143; cv=none; d=google.com; s=arc-20160816; b=V1b+a/IqArIgkf3KL6L07qYRmSe5YTaXEe3pOsuq45iE8skM4HcQF3vosGWwvEyviU /TTUDi2tTPtz1kxpXaSI8LD9fPwuz6i72Zk+Vetvc3rWSIJg5PYspICrrTpIqmqM6Dz9 LzdBkSpIONQ8+mrPeqXRJO86qgrQa7e5ZR3AQFJR9YxiBo4D6TVlu5US37MlGL3U0DwI Id6KjkHhh8TlOpVas5QBP6qV/DTGCo+3brsFf+v3TN73kL16ft3DE1e7KPimXvmXBik8 Q9ktzoB2M4TAuMtMHhwq0Xa55OzDKHPZZXs73P6l0rpWWlNRTWmRTQhgqjdeLtgzsrhQ ch8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tvo/EwR/TGSGrQyzo/cMXEKKXBvLMa9Iahv6vvH3r34=; b=dPRCU8NlVPRgP2ZuQA3jYRCQ3sIiL3K/7YJdzEeofHPgRn91dXmTdi1osszE5erde6 z1ijOovEqUvfoO0/EPPv6PwaLvbWeN0K+nY2ajmnO9JVPGHXfKAZW8EOk7a9Mj2AKDF2 mww6mNepF+ET46JCdW2DPq+G6ihk8jZAUSYTXVSAloHk3JHyIS6iWPX1yBGzTtF5di4b Mpq0tcAMpZz7Y7unJCQpsWF2iGBpWvOFftv1jOP2tmi1fU/VOgPWUTHPBIYg7IFpQksm yHpyFcZqpa/lBbBw6oQ8H2HcYc2ri/3WVY8Qwai/Y4/EF641WZ3P9UZGxY9e/DSU3U7v yh4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h38si26853048plb.149.2019.07.28.16.55.28; Sun, 28 Jul 2019 16:55:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726256AbfG1XxZ (ORCPT + 99 others); Sun, 28 Jul 2019 19:53:25 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:32857 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbfG1XxZ (ORCPT ); Sun, 28 Jul 2019 19:53:25 -0400 Received: by mail-wm1-f67.google.com with SMTP id h19so41793502wme.0 for ; Sun, 28 Jul 2019 16:53:23 -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=P2qP8PxUKwvDuhQpbDXmKVDOUh97k9xw1pctNB4qwCydm0dejcS6zKLgm7yQq6V3RN 3XOYmF4zaIYvQAQg8VI97Wq+vBJHa0UlNDhWv3cpgWu5P2O2MiDvyRQzJUkP94tcYXN3 GxwmRFITYy3XT6inYdB1O7cKMhSuGEVy3Ud7RJILIvbUYcvLgpBRZDHlC9u7WteKY901 B7Mh8bot+a4TXrDkg/VZkjo7MA7tjugObdNaYlc0SR/K8yC/OOR3GxTv+njeNNbLouAV 9BvxiCuuQ7Sk4IPi2YiifOm535eaKMF0umY/MSPN4y5ZmZtGKYFdcPRItMPSYV+nn/hz EApQ== X-Gm-Message-State: APjAAAVD5LLKQ7/MDb5/l2RVbR7NaCO7w9LX0qVEdbcU6XEgzcngkLp4 HfX20lufMmEs1YRdET2F9WjffQ== 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 Cc: Will Deacon , Mark Rutland , linux-kernel@vger.kernel.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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.21.0