Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3657679ybc; Thu, 14 Nov 2019 12:33:14 -0800 (PST) X-Google-Smtp-Source: APXvYqy9Lr1x9x+jT3CeaigcBfuEoBNWp0C3YFOq6j2QcAeECMWU0aH301YJvZbXZv5KSZTjs0N5 X-Received: by 2002:a1c:1d48:: with SMTP id d69mr9471329wmd.160.1573763593889; Thu, 14 Nov 2019 12:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573763593; cv=none; d=google.com; s=arc-20160816; b=N0zlPirpRxEDvVklW0Y7qdowQC7IAu8QWhiEyz0ocksv3DCnbWr2ZuPie+dCfWBHsJ zn4jNLw6u3GO73k9tzn6mv62zf2V56SjT4PydzvCOm3EgJFPGwVndCYhCBjXKgJ+KGFe nLrQ177YdfCyCjOUzK7OxFFDj98dhO5ExfXLEtcKm9hVIsdx6cqSLw3sLi4sALY+ItWa qfxFMNrasXzorMN7DN8e/QhIlXZq8HJ2npTw6yvcZE7IBQHH2tr4gteWsG/1h22hBMZ4 Xt4INhcnfzYTCGdrbQQT78UGksbvDjMUP17iNU0+wQ97+luxN/k5ipHAttS/f3/ZAbTE yXxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0ynDT5k+ne69l8oleicB4H8/r/UQCJL4Yq9Fwtuyz8E=; b=SJpOg6uS1dS9etm9DTCrfj9TA1iWpCevDA7zsvJzCkOMbhV+FGGdlo9aprsL1a4HwH 7nL8Kvl0UYDpfsijtsUjErzIMDFG+/37dkiqsMnn47kGIUSPCtbGWXF50jC2CDvkB8oe zgVECw1PCr/bVQyYqujkQg4cSb7B3KNeR6w5L/QITmEn15A43tRzdKqWHm4lZnTum9Dx cDtb2ZMWqmU0mwTxHLobKI64Bf29JcEdtW4T6d3atSXfXiDlsWBwG51dAkDkkwOS2TK+ ow/OzuluI3IV+hgKNJbIDt2fvviBnMz51oGtdofPZFGqji0Kc5CXZ2Lwpi1mWLQE0hW2 K3cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si4341762edb.425.2019.11.14.12.32.45; Thu, 14 Nov 2019 12:33:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbfKNU3C (ORCPT + 99 others); Thu, 14 Nov 2019 15:29:02 -0500 Received: from foss.arm.com ([217.140.110.172]:49096 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbfKNU3B (ORCPT ); Thu, 14 Nov 2019 15:29:01 -0500 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 3FDD431B; Thu, 14 Nov 2019 12:29:01 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DF2E03F534; Thu, 14 Nov 2019 12:28:59 -0800 (PST) Date: Thu, 14 Nov 2019 20:28:57 +0000 From: Qais Yousef To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, Dietmar.Eggemann@arm.com, tj@kernel.org, patrick.bellasi@matbug.net, surenb@google.com, qperret@google.com Subject: Re: [PATCH] sched/uclamp: Fix overzealous type replacement Message-ID: <20191114202855.64e4jnb4dcbru4w3@e107158-lin.cambridge.arm.com> References: <20191113165334.14291-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191113165334.14291-1-valentin.schneider@arm.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/19 16:53, Valentin Schneider wrote: > Some uclamp helpers had their return type changed from 'unsigned int' to > 'enum uclamp_id' by commit > > 0413d7f33e60 ("sched/uclamp: Always use 'enum uclamp_id' for clamp_id values") > > but it happens that some *actually* do return an unsigned int value. Those > are the helpers that return a utilization value: uclamp_rq_max_value() and > uclamp_eff_value(). Fix those up. > > Note that this doesn't lead to any obj diff using a relatively recent > aarch64 compiler (8.3-2019.03). The current code of e.g. uclamp_eff_value() > already figures out that the return value is 11 bits (bits_per(1024)) and > doesn't seem to do anything funny. I'm still marking this as fixing the > above commit to be on the safe side. > > Fixes: 0413d7f33e60 ("sched/uclamp: Always use 'enum uclamp_id' for clamp_id values") > Signed-off-by: Valentin Schneider > --- The changelog could be a bit simpler and more explicitly say 0413d7f33e60 wrongly changed the return type of some functions. For a second I thought something weird is going inside these functions. But that could be just me :-) Reviewed-by: Qais Yousef Thanks! -- Qais Yousef