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: 12483695 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 52598C433EF for ; Thu, 9 Sep 2021 18:49:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1F7BD610FF for ; Thu, 9 Sep 2021 18:49:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1F7BD610FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=RYNmwu0KJtZTmlsJcUiQMH9MEzH5Ir4AwQL1EA3Bg8s=; b=RjioBHn4lIpJCw hIS7Fm39HeVkX9GOU0ZHQTUz4omiNKoltY5AuSFmhT7MKGE3+5qYDFJiU/+0oriOsRlVW4/ig5CyX zrx3nUzfgrZk7J0IXJI2TdOQ6Z6ZuXayTiGg4EUhugtEz1oVqKw0dnxHVhJMkiubhU11qoEcmzRix bsmhFIY7YupZyZP4m7NQqY4wq0EGfwbkgJg8zUye+XRIUpFJWE5lnT0dxEs7M+NLliGum4id7Pcm8 yhJFATbrW9OjhC+6fLsAseMAsH+tF+Vt5CPEoEG8xQD0X6RigrPOhiPbos8khPn849rZ1dL+49kKO pu5DggXei+s5A8qxp1EQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOP50-00Adjf-9c; Thu, 09 Sep 2021 18:47:22 +0000 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOP4w-00Adj7-To for linux-arm-kernel@lists.infradead.org; Thu, 09 Sep 2021 18:47:20 +0000 Received: by mail-oi1-x233.google.com with SMTP id s20so3800405oiw.3 for ; Thu, 09 Sep 2021 11:47:18 -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=UwKjUXgl46FDPer+J3Jfpoepy6LuDiLrA5jvEFrVEaAixxb4R7VEsYQK56qAXjtW5J V/a2exqGHLGHpgmrYobQTZED9ssPnhHIzMgf1himpWTWafKx6xruuXKjtuuuWxGVAsBS hGsizsIL82jQ5/gP/NJ2NqZWtI0tQT2dtALZnfzJKAP3cDuNVCWn2KQZEDTWTl9vWLtH xt+8YbSF66WhG0gZLu971p982Do9q2Wp6C7Gi8kXmqUNWOE19mybwmYXCtZ4exWKGjG4 WPzvL9sM6TzVkGHXxQprqh8q9Kek/SBELz4BN2kZ/7AYkgmgW1tPKqQsfX1j6s3nrRsM 9FEg== X-Gm-Message-State: AOAM532MqaZ9XERM03HV3wwub4/ZdDx/T/21CPNgNhyYXC+Im3tI6yt6 d6PoC39R4wsL6rP5dskSRrE= 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) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210909_114718_987291_2A9D8A79 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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) {