From patchwork Thu Sep 9 18:47:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 508968 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2DE5C433EF for ; Thu, 9 Sep 2021 18:47:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A106A610FF for ; Thu, 9 Sep 2021 18:47:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237172AbhIISs3 (ORCPT ); Thu, 9 Sep 2021 14:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236112AbhIISs3 (ORCPT ); Thu, 9 Sep 2021 14:48:29 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52EBAC061574; Thu, 9 Sep 2021 11:47:19 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id 6so3782137oiy.8; Thu, 09 Sep 2021 11:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qwRbqLlU+vBHhW47NisueHvIdwrZ6Y450qWdiG8r04I=; b=IEjG7MIbBit01JAJsfL5xw6XzdLMiYT2+87sCixlJI06HjAKa8YhHwriizaoCci/NS Ym0sLagJeuHTfDYYluYYljTDosrYAneJtpHaRPOfV2vh2yHlceWYGfLKxxBYk956Bafb jCEJ/J97pZcbkZImJ7Re9Xrl0dIuofp21PFjfu2aqsnUYmy0xB3/KpNPEOlJWpa63Z5I 5vmWwerYB7qLzlhjvyYq7cSqpDvy5fx5Js6pZGK3PYjesv44hC5Q2iLgLISwiaFAlpJo o2TslzGHMkNGtbWaNrRAjMauhxcIy6aICpt46t/mNxeI6kIbV7LsNuUFi1mPO6kaijvF DF5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=qwRbqLlU+vBHhW47NisueHvIdwrZ6Y450qWdiG8r04I=; b=8KKAmFGaVYY1VZ4fx0W6uP11CCWxTrbUmFISgsp/SaSlzytocTUEd4vMAYd/xOa9d1 R6A2rwHdz3VDaug9xr6RYAahvge7PevIWvrDZzYWzm+OghH5/KI0YhAa38sy6GPRDaa3 NmQwI1yeizKOtwg2Utu0t6+B8XADPS+40nuX3dY0Jd07gQjq73HsIbis2BYFlK55tsKA fC0y4XJQrgwjb7Hhpb9TNOoDOzM/Kj7aJBu2CSJhJzJMsdSxaR74PB/G2kC/Lf+hY3NL I+nRuyPngp/SdgHgFn/vHB3oaV97aaOeY5oDQL4pjxYS52O7lGhE8NpOyVmOACQXL6mE xsUA== X-Gm-Message-State: AOAM533o259voxgMjwLpw1kuZJCdI3esXwrVbXJVainjYBKoThpU8f0y X21LWddz82EUHtFeiLiwuJ4= X-Google-Smtp-Source: ABdhPJxbizi8vQ6oU6WAqJ7E1k0GFTGnx1TglkGdYBFWfzCsOSZTq5LnrTwpxdsgUAWWMzUFqtiCgg== X-Received: by 2002:a05:6808:2116:: with SMTP id r22mr1014325oiw.128.1631213238100; Thu, 09 Sep 2021 11:47:18 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l4sm634203oth.4.2021.09.09.11.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 11:47:17 -0700 (PDT) Sender: Guenter Roeck From: Guenter Roeck To: Viresh Kumar Cc: Sudeep Holla , "Rafael J . Wysocki" , Liviu Dudau , Lorenzo Pieralisi , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guenter Roeck Subject: [PATCH] cpufreq: vexpress: Drop unused variable Date: Thu, 9 Sep 2021 11:47:14 -0700 Message-Id: <20210909184714.153068-1-linux@roeck-us.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org arm:allmodconfig fails to build with the following error. drivers/cpufreq/vexpress-spc-cpufreq.c:454:13: error: unused variable 'cur_cluster' Remove the unused variable. Fixes: bb8c26d9387f ("cpufreq: vexpress: Set CPUFREQ_IS_COOLING_DEV flag") Cc: Viresh Kumar Signed-off-by: Guenter Roeck Reviewed-by: Kees Cook --- drivers/cpufreq/vexpress-spc-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/vexpress-spc-cpufreq.c b/drivers/cpufreq/vexpress-spc-cpufreq.c index 284b6bd040b1..d295f405c4bb 100644 --- a/drivers/cpufreq/vexpress-spc-cpufreq.c +++ b/drivers/cpufreq/vexpress-spc-cpufreq.c @@ -451,7 +451,6 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy) static int ve_spc_cpufreq_exit(struct cpufreq_policy *policy) { struct device *cpu_dev; - int cur_cluster = cpu_to_cluster(policy->cpu); cpu_dev = get_cpu_device(policy->cpu); if (!cpu_dev) {