Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1102631rwb; Wed, 16 Nov 2022 12:06:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hrSHi65emXlOuDCUl64LstX9scZvZR8MrR71yZwgQc0cZMnyWJ9PUHpheUQP3szhcWzVZ X-Received: by 2002:a17:907:c292:b0:7ad:90dd:4af with SMTP id tk18-20020a170907c29200b007ad90dd04afmr18827716ejc.488.1668629167591; Wed, 16 Nov 2022 12:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668629167; cv=none; d=google.com; s=arc-20160816; b=rKv06bREtXYLFVdVYy8CrkgFqd2iTnWZ4r1TCge1JViZMZnud/kMp8LAoAXbHbw0R3 xz4/j0pAOSQOG+jQKtPMmN9414KZ/A4edF4xtMsxOZWCBpGbovz1GRqdxDArtKaQI6cX aslC92Stv2vlgmlXbpixusYacKLulAD+88lKn8R6bFl4/EGY1HPVxKOsFihauUMcyaQf UthlLF4fIZBEd/qpgtkwz2WwTWKEMuWmxw9h3klYv0/UTBm77NIzGZw0qr5teShDmlqv 2YXqG9/71EtjsPe3qH0L2q6lEimVJpiDLF2/KdDtQ/nfLqUWaOi0y0arwCTBPfK6KYna Usxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WVBpDBdD1FeHwRo/1m7B8tqkDhwDLhNjQiXqvvZ+z1k=; b=n03ynSWvH17i9fdkNcxpLp5aNt3n1VVYfB3fKusQeQdl+amv3fwyIRMRTXSRlwufu7 h2pG0LMd/toTbGB/4JUIH5PhHyvtVAp0hTh3UUwp4mSru+F5fnZLjt1TTWpHZw65tlLx 84wlfCG5dp0W9vXjxueT+E0c6L5y4fZc8QEc8DdNFd/ZT1Vux8l04+RR/wT0LkrE8iMb GRWMYO9nmrLQl86+aQcZDu9WEliIdDITvMqaMMviHV04sPtw9LsXfsMAFFt+sBh+kS/D Ubd3qUXGSkEK+W8mrjr3VQapU/fFr7++CZPUq9a4lWYpgw6cXM5fYcwSxVkaGSSTMM/E Ixbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ix6PNTTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go14-20020a1709070d8e00b007ae63fe980dsi16950853ejc.931.2022.11.16.12.05.41; Wed, 16 Nov 2022 12:06:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ix6PNTTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234499AbiKPT6q (ORCPT + 91 others); Wed, 16 Nov 2022 14:58:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbiKPT6n (ORCPT ); Wed, 16 Nov 2022 14:58:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B56CB1A814; Wed, 16 Nov 2022 11:58:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2BA2E61F73; Wed, 16 Nov 2022 19:58:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 225DFC433C1; Wed, 16 Nov 2022 19:58:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668628720; bh=Yz+Dxpi1MFBxgPccc7T3ie8G4yMfa1+9isd3G42R52E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ix6PNTTSj0Yaf5lEGeNCr5WQXAXA7422feYXu+m6sm7R8pGhPUKRPODf4LHvsumfp 1x+6J70vK+Kzb3uQwcaeaHIoSaxJdJRnKgK4NHMxB+oehsMlb8ZxEkgkD2xf802iFw PHAsPd5QAVmx9/f6l/Ot0VBuiqMy6Wmm+xS8koq5U+6ch1Q2h7bukNl0SrnSiDY+lm Eba2Lxt0jJJb9gg4g/2B0H7undnLHxem+dl7xrK2Nui5HEgLZseeQJTXra56rGqAo4 jOMb9QSL7I8f8vTypq4JXcCEhu/VLgqX578HAQ6N9H30tWb7EGM5cnMcvMH6cbIpKp oBoRi9OHafsbg== Date: Wed, 16 Nov 2022 12:58:38 -0700 From: Nathan Chancellor To: "Rafael J. Wysocki" Cc: Viresh Kumar , Stuart Hayes , Nick Desaulniers , Tom Rix , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] cpufreq: ACPI: Remove unused variables 'acpi_cpufreq_online' and 'ret' Message-ID: References: <20221108170103.3375832-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2022 at 08:50:41PM +0100, Rafael J. Wysocki wrote: > On Wed, Nov 16, 2022 at 8:34 PM Nathan Chancellor wrote: > > > > Hi all, > > > > Small ping, was there an issue with this change? It seems pretty > > straight forward to me and it is wreaking havoc on our build matrix due > > to -Werror. > > Applied now, thanks! Thanks a lot! > > On Tue, Nov 08, 2022 at 10:01:03AM -0700, Nathan Chancellor wrote: > > > Clang warns: > > > > > > drivers/cpufreq/acpi-cpufreq.c:970:24: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] > > > acpi_cpufreq_online = ret; > > > ^~~ > > > drivers/cpufreq/acpi-cpufreq.c:960:9: note: initialize the variable 'ret' to silence this warning > > > int ret; > > > ^ > > > = 0 > > > 1 error generated. > > > > > > Both ret and acpi_cpufreq_online are now unused so they can be safely > > > removed, clearing up the warning. > > > > > > Fixes: 13fdbc8b8da6 ("cpufreq: ACPI: Defer setting boost MSRs") > > > Link: https://github.com/ClangBuiltLinux/linux/issues/1757 > > > Signed-off-by: Nathan Chancellor > > > --- > > > drivers/cpufreq/acpi-cpufreq.c | 6 ------ > > > 1 file changed, 6 deletions(-) > > > > > > diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c > > > index c8fdfcf659e6..74ef0e05ff7b 100644 > > > --- a/drivers/cpufreq/acpi-cpufreq.c > > > +++ b/drivers/cpufreq/acpi-cpufreq.c > > > @@ -953,12 +953,8 @@ static struct cpufreq_driver acpi_cpufreq_driver = { > > > .attr = acpi_cpufreq_attr, > > > }; > > > > > > -static enum cpuhp_state acpi_cpufreq_online; > > > - > > > static void __init acpi_cpufreq_boost_init(void) > > > { > > > - int ret; > > > - > > > if (!(boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA))) { > > > pr_debug("Boost capabilities not present in the processor\n"); > > > return; > > > @@ -966,8 +962,6 @@ static void __init acpi_cpufreq_boost_init(void) > > > > > > acpi_cpufreq_driver.set_boost = set_boost; > > > acpi_cpufreq_driver.boost_enabled = boost_state(0); > > > - > > > - acpi_cpufreq_online = ret; > > > } > > > > > > static int __init acpi_cpufreq_init(void) > > > > > > base-commit: 21cdb6c18f85fe538ca8740bc79f11fbe08d0197 > > > -- > > > 2.38.1 > > >