Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp949423lqd; Thu, 25 Apr 2024 01:17:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJNAY/S0aP0MErufGYD9eZzP2MeZhhYzkNynA4gRNfUGZWRhH4wOlSNxCqVMzJxr6/c7x2OMYh/RdLF6sOng5ib+MZKI4lpZ0GzkzAkA== X-Google-Smtp-Source: AGHT+IGREYygNfujg7C4SaFBcnsu4RjPmlKzxXWhXvMaBMzxXo2tfD0Fh+noXjiAK6bdqLIxR8/b X-Received: by 2002:a17:903:2a8b:b0:1e2:d4da:6c72 with SMTP id lv11-20020a1709032a8b00b001e2d4da6c72mr6685519plb.0.1714033023593; Thu, 25 Apr 2024 01:17:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714033023; cv=pass; d=google.com; s=arc-20160816; b=Lcfdkems3tPQYZejvvVLmDeXc3CNTybOVip1OjejRg2+dvV+uJStAPGbkT3mZOgx4h 6f4cdob6EmB1PB3r0LEOwaKS6YDZrftYgsUUJOBu3gfJ1NutNUOBUJ6ACDfTAon8bNGE wnWBLTrXHQfMAF6+ONa9ui8/hJnpBDIrb20RfiXqRHdMgvh62iClIFmAPybi75DWINhW ODZmzzfGAapvYF4Mwh2G9aYYRPuSz5dCzx0HbAAm0sE/aH8BoKHtUOKtGLnix5AA3DvZ oLLolkNdkjmwM28ljW0BniQC6dh9XH+V72C0tNwb14vqzER78yDJKa6M0hJdA+oqtPNm jEgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=IfKjEFZ5RFah17m8B/FA+GrGM0w6LTMWGZ+/UyMJRt0=; fh=o62C12PpHXEcItyjK4SmBrpfPJ8q5UgrAamai8+CMfE=; b=KpUbGL5DuPUlR5MC2Fa031ovXqImBc1uMyPrz8QHgAdh6v3adwdx8u9Gt1/9mNdLSt fuczjt+jvMYQKoc/crluUw8pz7Kk3wUbJnFrPq9NNin7ZhqaMLErAzi7k10SARXLOv0f dYX1kRDHHTbDort8bIOjxa1gJ7hse6/Q/AptB+qKXLBfP0lpDQocjAjfwgFrEDM7SDGD BMZNOjCKQ2ARUdvtHU08Q31cxs9T6qUsNCYnuqvlTuTf0LLA0nlqUqv+csXKrCgG6MXa p+iVt8KzRfoqJ7oRSS2/fdMlgboWFBv+30ig0q7NhMR4AksVaJst7akMOa2cqHxRvVQX NrIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-158182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l14-20020a170903120e00b001e67732a182si12622854plh.637.2024.04.25.01.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 01:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-158182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3BC51B23A77 for ; Thu, 25 Apr 2024 08:12:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 334B76F07F; Thu, 25 Apr 2024 08:12:05 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AED463B78B for ; Thu, 25 Apr 2024 08:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714032724; cv=none; b=r+qUa9cxXjGhVEclj98C5/sYk6DzfturPV76dkNUOcpdIZZCjK2lmhSXxipHAjdZCDrnslZevKlSRj7fLXEu7wu81rs9SFTNZdEGR27ElezLiKTcaDuJgVTzi+cK8BBh/hX2qFe6puO5Qav/xzD21nE4kqnL61zCbLa5Dv2o8xo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714032724; c=relaxed/simple; bh=z/3dDKpe/qkjJq5qQJ/XtxPtsk1PzmXNRabbZFG5Qfw=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=liHnD+G0HJcVyteKT0gPBJWmru6Y0JsrNSWKiqv/KcfDORwIrIHqBhzaFbaDker1QF6MALOKczz6qmHR1NXkxuH2sQ5/rnVk8NaVgjT2rKkDbOteNqo3+TctUplyZNcsOR3QpdK+/J7eS5IFMLbqaGkgbS+dyH29FVHEgWaVoOg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C20411007; Thu, 25 Apr 2024 01:12:28 -0700 (PDT) Received: from [10.57.74.218] (unknown [10.57.74.218]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4006F3F64C; Thu, 25 Apr 2024 01:11:59 -0700 (PDT) Message-ID: <730b8b60-8101-4c93-8e71-74804ef0d314@arm.com> Date: Thu, 25 Apr 2024 09:11:57 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arch/topology: Fix variable naming To: Vincent Guittot References: <20240425073709.379016-1-vincent.guittot@linaro.org> Content-Language: en-US Cc: lkp@intel.com, sudeep.holla@arm.com, qyousef@layalina.io, rafael@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, gregkh@linuxfoundation.org From: Lukasz Luba In-Reply-To: <20240425073709.379016-1-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/25/24 08:37, Vincent Guittot wrote: > Using hw_pressure for local variable is confusing in regard to the > per_cpu hw_pressure variable. Rename it to avoid confusion. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202404250740.VhQQoD7N-lkp@intel.com/ > Signed-off-by: Vincent Guittot > --- > > drivers/base/arch_topology.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c > index 0248912ff687..c66d070207a0 100644 > --- a/drivers/base/arch_topology.c > +++ b/drivers/base/arch_topology.c > @@ -179,7 +179,7 @@ DEFINE_PER_CPU(unsigned long, hw_pressure); > void topology_update_hw_pressure(const struct cpumask *cpus, > unsigned long capped_freq) > { > - unsigned long max_capacity, capacity, hw_pressure; > + unsigned long max_capacity, capacity, pressure; > u32 max_freq; > int cpu; > > @@ -196,12 +196,12 @@ void topology_update_hw_pressure(const struct cpumask *cpus, > else > capacity = mult_frac(max_capacity, capped_freq, max_freq); > > - hw_pressure = max_capacity - capacity; > + pressure = max_capacity - capacity; > > - trace_hw_pressure_update(cpu, hw_pressure); > + trace_hw_pressure_update(cpu, pressure); > > for_each_cpu(cpu, cpus) > - WRITE_ONCE(per_cpu(hw_pressure, cpu), hw_pressure); > + WRITE_ONCE(per_cpu(hw_pressure, cpu), pressure); > } > EXPORT_SYMBOL_GPL(topology_update_hw_pressure); > Make sense Reviewed-by: Lukasz Luba