Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp290896pxk; Wed, 23 Sep 2020 03:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqHCUwCj7ISSsJA1n2992ya6oENTVSnnP+i7sn8saxFcx7GVl5SWtKjwiKm9LEX1vmxUav X-Received: by 2002:a05:6402:3050:: with SMTP id bu16mr8977278edb.343.1600856604096; Wed, 23 Sep 2020 03:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600856604; cv=none; d=google.com; s=arc-20160816; b=A8kjPhV61rQx3IaseDbFnTHDC16/x/9stwSCpBgVHkNM2HvHVADSPwAJJq+oO/CTHu AGraeFG5rSnWJDQ9rv0Xs9pR71W0sFhmBo1VMDenY7MjYdxElXJVmyZDWQxpxTbe5VxW rQVyjL6bN3w20Fx/2VcMjqulfQQUIKXEk4pjqjMQsF6i/M1FcPiKybdGBuPI06wPvony iqQkGSGfsgjpUBcTXXFhbBofp8X4wPNyyCzbhm3GbGd3gqVyuNlKP39aMVmip2w5V6kq QAeSwmFNllPg+P4+SQbgzXJ6dxqHwqbIQWmbeq5MDVSbQUWNRm2BjOvnJ3yD6ws/fULM RWNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=+VSG+JQ+jUuKHsEtzVYBb6EXNhYjc+grDZ4e0NHvF9M=; b=zpJEx9NlEMKYNO5tKVY4JBKvh1svhGurVbv+FwogIXniJLO/iGDzORD38n6dQ9thVz XWLAQiCP2WRsqdgArXdgjbfCboCWhUycYaBXVu+24JCqwq1TUTegr78aqtBhZEoMZsQm XDACFtJ+MhRtjB8YGHm7EeqU7+YBT+3HhKi+mGZ+xhs+x4Znl9zcfkr3uoDDXEjqp9GJ t+IjfMBMOHJN6+cyLrXkj/lDyqNYzlHBeD3mvRbuBOsVc2avSeA5qZlIUYHA1WyfAu5n SGz7qgsHi0iO1ISsXkt0RD5qXyeBzOXmO7uJHg5I043A3tCCeVvbzoedDK7hrsCI26SB c5cg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si12606750edy.326.2020.09.23.03.23.00; Wed, 23 Sep 2020 03:23:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbgIWKWF (ORCPT + 99 others); Wed, 23 Sep 2020 06:22:05 -0400 Received: from foss.arm.com ([217.140.110.172]:42592 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbgIWKWE (ORCPT ); Wed, 23 Sep 2020 06:22:04 -0400 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 35BC0D6E; Wed, 23 Sep 2020 03:22:04 -0700 (PDT) Received: from [192.168.178.2] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3780E3F718; Wed, 23 Sep 2020 03:22:02 -0700 (PDT) Subject: Re: [PATCH -next] sched: Remove unused inline function uclamp_bucket_base_value() To: YueHaibing , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Cc: linux-kernel@vger.kernel.org References: <20200922132410.48440-1-yuehaibing@huawei.com> From: Dietmar Eggemann Message-ID: Date: Wed, 23 Sep 2020 12:21:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200922132410.48440-1-yuehaibing@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/09/2020 15:24, YueHaibing wrote: > There is no caller in tree, so can remove it. > > Signed-off-by: YueHaibing > --- > kernel/sched/core.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 2d95dc3f4644..1b06b952dbbe 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -940,11 +940,6 @@ static inline unsigned int uclamp_bucket_id(unsigned int clamp_value) > return clamp_value / UCLAMP_BUCKET_DELTA; > } > > -static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value) > -{ > - return UCLAMP_BUCKET_DELTA * uclamp_bucket_id(clamp_value); > -} > - > static inline unsigned int uclamp_none(enum uclamp_id clamp_id) > { > if (clamp_id == UCLAMP_MIN) > LGTM. It got introduced in commit 60daf9c194106 ("sched/uclamp: Add bucket local max tracking") but was never used. Reviewed-by: Dietmar Eggemann