Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp89169pxb; Fri, 17 Sep 2021 19:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3T3KN4deAETqx1OgyjiFve4CArbh0dnTsv0U/EwbJkTOLvnDkdx2xKNAU3QotTRh9OTzV X-Received: by 2002:a6b:5a08:: with SMTP id o8mr10950028iob.35.1631933416111; Fri, 17 Sep 2021 19:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631933416; cv=none; d=google.com; s=arc-20160816; b=d4YVuOH3PYuF9Tnh0Y8DC/mkC4khHW18F3kJsANCTE4Iq0OumzfeBWDgBcy6ebXoob JEFyUok64H8C+3vjLOQjxtfWmIDWDvGT95taLdUvrm5yMWfCUAhnQX8nZ9auNQ34hW/H AVWpzUMv79/kE16yVPNpODi+YwzGgU28m0oC1+hSf3U5C0Mg4pWQ+iBWLmIim/5AMI8G vzG/Kv3MMJCphw2nB/UKC200nNCs7Ofj+3yr4QwVrVK0XnvBXDkCZb2wTM8YY3OPDU6r dDCrUkgOyWqiiRjsmcimyOteSExZweNECCkgA9wWiklBWG65VvA0yfh+JM9j4kC++qc5 PmsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=me2BWA/5YAvTVoJFvL2wGRYy0dapHMyHIG3V9ptKeQM=; b=sbNOYFGfdscWZyIlbG8CqBwDSiP5JknqBx5WB3nW88dNtQXz7twzqfH5tbiAlpoQue slBLbZEeHYsYoAtMiaPXvAzGU5f8NzMkmPAvuqiSpTw675z7YqkIV+3loBkiAY8N472/ pUzZlnZe8Qg8JLpswgLnWCi04XvTgpAGo5LqtKO10YCD23VNJtJ3m+Ml0Owd5tp4kNeX mPnKihsizBfNt5bovT1T43NDcPn5DuE7Kcp9LHTR21YkFXrjMHmMPuImw+yUC9WzL+lh /SREAxh9D7+fy4vw+SR/4TvgCITqmTX1Wf97ezxrUi5X3uU0yIbFeYioAXuUb8ebjOob R9iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hRQ7GibP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Ik1ST8zM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si7868367ill.147.2021.09.17.19.49.40; Fri, 17 Sep 2021 19:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hRQ7GibP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Ik1ST8zM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235577AbhIQT2p (ORCPT + 99 others); Fri, 17 Sep 2021 15:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbhIQT2o (ORCPT ); Fri, 17 Sep 2021 15:28:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D1E1C061574; Fri, 17 Sep 2021 12:27:22 -0700 (PDT) Date: Fri, 17 Sep 2021 19:27:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1631906840; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=me2BWA/5YAvTVoJFvL2wGRYy0dapHMyHIG3V9ptKeQM=; b=hRQ7GibP4Jm/ZRBUTlbSn7UUGAgfXz0IUTEFyWuPKeWJlHpzFW8xmM7/vFgwR18wkdLi9+ NWJw9dvhHa15jrPfpmZ6y7hgRNFXi2SzfZvWsfijeT7P3+Dewfz4m3zAG9Ev20UQHb9CSL QdMXB9fNRLr+Q6XrTwuAgHQwKoCLwwELtie1p8mgaXh60f2R/dr4fmafj/RJ7SA/qReN8i CnO4Ai5WA/8feAyqkwnvXnXFkz1Jf2MY+LA2Jg3cCoe6qCW3Cs33AaKZbZFsbQ0IvAhq2R bxl6Ms3WxdBGUymyJJ1eLK6rBGNOGoKZ99FIH3bmvLQXigBDWebWjZVSlup/0Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1631906840; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=me2BWA/5YAvTVoJFvL2wGRYy0dapHMyHIG3V9ptKeQM=; b=Ik1ST8zMwY6+lsKAn4W39Kmwm0Y0s9dsW6R6w9Ka0U3RkaYhOoBRXMhYdoceLN3Nv6/YdA zC/T2EDqXhW8dODQ== From: "tip-bot2 for Tim Gardner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/smp: Remove unnecessary assignment to local var freq_scale Cc: Tim Gardner , Borislav Petkov , Giovanni Gherdovich , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210910184405.24422-1-tim.gardner@canonical.com> References: <20210910184405.24422-1-tim.gardner@canonical.com> MIME-Version: 1.0 Message-ID: <163190683957.25758.3367474272186551096.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 85784470efa2d5733e86679ba05d310ece81b20f Gitweb: https://git.kernel.org/tip/85784470efa2d5733e86679ba05d310ece81b20f Author: Tim Gardner AuthorDate: Fri, 10 Sep 2021 12:44:05 -06:00 Committer: Borislav Petkov CommitterDate: Fri, 17 Sep 2021 21:20:34 +02:00 x86/smp: Remove unnecessary assignment to local var freq_scale Coverity warns of an unused value in arch_scale_freq_tick(): CID 100778 (#1 of 1): Unused value (UNUSED_VALUE) assigned_value: Assigning value 1024ULL to freq_scale here, but that stored value is overwritten before it can be used. It was introduced by commit: e2b0d619b400a ("x86, sched: check for counters overflow in frequency invariant accounting") Remove the variable initializer. Signed-off-by: Tim Gardner Signed-off-by: Borislav Petkov Reviewed-by: Giovanni Gherdovich Link: https://lkml.kernel.org/r/20210910184405.24422-1-tim.gardner@canonical.com --- arch/x86/kernel/smpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 85f6e24..c453b82 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -2166,7 +2166,7 @@ DEFINE_PER_CPU(unsigned long, arch_freq_scale) = SCHED_CAPACITY_SCALE; void arch_scale_freq_tick(void) { - u64 freq_scale = SCHED_CAPACITY_SCALE; + u64 freq_scale; u64 aperf, mperf; u64 acnt, mcnt;