Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp357780lqh; Sat, 4 May 2024 04:25:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXapRyMq91OfoTW2DobwaFOS4ukZHyowalTSbQV33iZeSqU3Ri1/4WPTATdjZzG7t1PcdUOUGRDdHd6YVBTuktGIWnMbC0CtHSQPJzROw== X-Google-Smtp-Source: AGHT+IHiSoe4D+yDGsp4IPnfaVpaodsGPWfF4lqqp2EaiKnecJ+I/Uo+TH0LyPVRJ4mFPp8/YmsE X-Received: by 2002:a05:6358:7249:b0:186:12e6:42b4 with SMTP id i9-20020a056358724900b0018612e642b4mr6796613rwa.23.1714821945453; Sat, 04 May 2024 04:25:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714821945; cv=pass; d=google.com; s=arc-20160816; b=U7S/EkGhsscYTcPa1KPlhjOdbzGo1Rp654W5PIv+hqUfeEaZwEno+mPjyaqP/FINfe hCQVX4+dxouTqmiC9abxTXL9Ic9PVAC4Eoj8BinCgzIHa1tpwM7QQ57UsfIMUu1bsDyj rsMrqcZftWLrHytoLS2J2QgP0L7RvpdURDngToXWhJ1rSu8KBC4hM7k/jMxmMsQXFYRJ oezL+vPlh/kW6rjE9WPdnAJP+cnGqP9QmwxpyWKBJ1IJIIsfYpV/54SrxrUARRc4ueNT JyqoCuUiwpCAdH9WMyQc0YUgw74EHOB5a5XyEKfw4AskQibpEJLuxhlm10TcBHLOulLE 1x/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=jPKRgPrnhQkyQvjVNzNYJS982z7u5glAR7kHzQu9FB8=; fh=fAepfxFQbkU1ehGY+DifuF9yhY/I4ku695kcfkfe3Zk=; b=RChbIW/iGHCKZYelehI/QOOLvHbS4+QSeCATQOQnIEu8dKFO0Zzhvvy+Pyc7CSy6z8 l+Z/I8Vq88Q+xhubiqn8Vz1LuJ4x5lP3ltyaLToKA0l3niulaCJObdTLJH3XaVvM+EGf 7OI/EzGJRr+bI22KknpXjYZIfAKE3lSvNoGq4vXj5uKKftw7Q3OTUqTh4c1nFJkTdPZK QUhQ4GyxRSDhRd9G031vvJUUBIGYq3iVWVVPY7yYYWMOvBNKow6lsdzn3YyIE47DUH8Z jKqSVipsqC8GxFGvn3RcFzvX7rkTHx0gun1VF/gTRDeYzWSGe7I8pw84b0Fr9oL/wprP R8HA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LjOjICvf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-168601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e22-20020a63e016000000b00604640636b2si4926611pgh.579.2024.05.04.04.25.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:25:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LjOjICvf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-168601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3F8728230E for ; Sat, 4 May 2024 11:25:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57E8D1CD15; Sat, 4 May 2024 11:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LjOjICvf" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 391BD18C3D for ; Sat, 4 May 2024 11:25:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714821931; cv=none; b=BSFdcKzaGhFD/t83GSqIZnU1gDa/ohNzvWosOkj4e6JVa6yIKyDjSNEnttFh4d5SRnwKV0TfbM74jdhkhhF3RK8d4A79ggE1CXBUWtODbE6m2VdBs9Hk7Pjxsip+X4+07VCEiFeYYvqNub9xCbw8EFu7t4MMs98VU2725YEkIjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714821931; c=relaxed/simple; bh=zThw4UDAOnEh6F/I9eYX3+ObEBgRTkhGcMAD0FioUnI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=BCXW9Y0Gb47jC3NAbyvIWY/+SgsL6yjI1F39HBcX+57MOfuwtKCwdCRgzFwZh5bunpswauSUMi7yTDReEsza+tpOcz0yZ84nqWRjfof9Vw/kd9iAgScRdMDb9y1gh0wKut1hquv2LksFxN8aAqn+5nuHcd/I9pi+Tcks7mz8PHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LjOjICvf; arc=none smtp.client-ip=209.85.219.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-de477949644so478820276.1 for ; Sat, 04 May 2024 04:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714821928; x=1715426728; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=jPKRgPrnhQkyQvjVNzNYJS982z7u5glAR7kHzQu9FB8=; b=LjOjICvfAs2LtW1qzETVjwP6Y1ALQ+praSuAoyouCEaJayFuzzvlikOgOwUS0x/wcQ /E8oc+Pem8yya6aRg+bTt/oJL2lSc+CJq7SiCJmLHoRusCAmt16v3TVKbBPjbRU1cXdi roAmS73itEGh2HHmhbYQUiPJVVbOS7sk1SwnANHB32oIxpNP1hMWyVOsWCXcWdL8fBsJ sMIqb9qi+XsMG1deVhPsWXbJ2e1u0gQffw4C95XVy7FyqzFqmqRlPo37h4dRDmTWUJ// yBpZL5ayrPqB5duXytrJYpAYXbMltwskJ9Bvgxus30BJWRX6cmofi/0KEY4QpvH/lqJl hYsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714821928; x=1715426728; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jPKRgPrnhQkyQvjVNzNYJS982z7u5glAR7kHzQu9FB8=; b=xTSgNobwa5/VsOdLWoxjeKvITdSyu/3nYBgLipJorKdRV5uwGO0SpfS+cZBCUvs9jD RpHkeJt0OzZEIeP0O0MduwNyjVgmrBdoc+kl/GrDuwDR6XZ7sIREvZ+KYMr7ZF+sY2eb bOqKwLRQo3M42T6zz1OeWjGt4q7A4BIhyZm7YJx7cxN6CpN5Ue5XkPt6j+BrHzq86lx7 rkDcY+UCjb90Gl+EZ4Sj7DrRBmPoTKCVcisqC4Npe6B6dCFjzREbW8LoSM4MAC1VnUew 4dQ800DkYLZNyJoF1ZV/GDAGQ7DAU5S4ILPA8Yti2+F4Cj4pttL/rUrTfpgOkZzVzOQR D8LA== X-Forwarded-Encrypted: i=1; AJvYcCWaV9MIeWNOwLEQwwG7m3JEUsJC71GbUPc/5AmU4PXIKJ5NEEN6XcRcoDgGTtAzgPL4anFO0BX7CYza+sncprbFNY8BTYDAer1dsmVR X-Gm-Message-State: AOJu0YwfJVoDsVGxQvn2sQhgan1olAFiiEq1F/PRHteFKnZZnOZ6qTmv B8eWwEcU/MYalVaoMP6YLd+aH/ILwCCHXHgglShQ3zWbMgKQcm08ljIcCSyZkgs= X-Received: by 2002:a25:aba7:0:b0:dbd:8f9:a71 with SMTP id v36-20020a25aba7000000b00dbd08f90a71mr6069893ybi.28.1714821928012; Sat, 04 May 2024 04:25:28 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id d72-20020a25684b000000b00de4f5e1e45bsm1055110ybc.54.2024.05.04.04.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:25:27 -0700 (PDT) Date: Sat, 4 May 2024 14:25:22 +0300 From: Dan Carpenter To: Lukasz Luba Cc: Amit Daniel Kachhap , Daniel Lezcano , Viresh Kumar , "Rafael J. Wysocki" , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] thermal/cpufreq: increment i in cpufreq_get_requested_power() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding We accidentally deleted the "i++" as part of a cleanup. Restore it. Fixes: 3f7ced7ac9af ("drivers/thermal/cpufreq_cooling : Refactor thermal_power_cpu_get_power tracing") Signed-off-by: Dan Carpenter --- This is based on static analysis and not tested. drivers/thermal/cpufreq_cooling.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/cpufreq_cooling.c b/drivers/thermal/cpufreq_cooling.c index 280071be30b1..a074192896de 100644 --- a/drivers/thermal/cpufreq_cooling.c +++ b/drivers/thermal/cpufreq_cooling.c @@ -249,6 +249,7 @@ static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev, load = 0; total_load += load; + i++; } cpufreq_cdev->last_load = total_load; -- 2.43.0