Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3876480ybv; Mon, 10 Feb 2020 08:03:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzmiGkQk80EsI2ziaJSW+rzCkSP/gOZuibtbqmiGx50pdB63vX1sEiEOAWDvABHnLyUYUHO X-Received: by 2002:aca:ed08:: with SMTP id l8mr1223835oih.80.1581350594426; Mon, 10 Feb 2020 08:03:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581350594; cv=none; d=google.com; s=arc-20160816; b=oW0RCDP99yA01LjvKQzAb++iSczfNEt/liS3OUX6RkO6m6nAPNTS0ISbzVLdqZHVbX Yy5g/OXIieM3eCWhYs9+UPwHv1xMyjXekpmTaZgxu9SlFhC8sZPB/JeJnAMrJ4LVmji2 diCrPcplpOJZROVOlrwDRb58n/9FG7W+rLvfoyzTB5oddURBKROc/88mq35VRNDdrSfw FUvOvWKZkFEFJTYXY/rac8+7/E1vB3i3VnfdjmdW/1OEXZVrm66oQk581ppDD/s4+XOe fh5ffcE557SJaQUEDYEtFA08TppnAbgfmtU0yrxTJntOpzmpqF9qh/REO4g87C7jhLng r9YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yzBaIRzQ3U7aC1btvi9nCvDDsJBWdsTULNZ07nsydtE=; b=v/8jbdtHosxQjfAlQKHwxOtq3CD535kuzH+32WrDq0NuDUY2+Hxnt7NpmtSFZ7vNtT KJrAnZZwUShPKpJuGlyd/OPdMJ/oJLojp3fOwUeaPwhmlKmO7AUQCGomJH0q9C3QRAMJ +Ech+bKTn05U1aGPfMTe2MTNg4++i4b9X1FAVADhspX3izDp6VAEgMd516wLftPUv2To PU1h5qMjTCj9r4UT2d6gOfH6tFvsA7dAaOfXjceai+G5kwhzyXFBxU/SnqBoKIxuLXU8 L6Wnq4mraxJ3KUB1zuqteO7wfy63x559Ont/Yf84SjbTskZMWLwv3nnUMBPRVCeUYH13 VyWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KH79nf1r; 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 r5si306376oic.19.2020.02.10.08.03.00; Mon, 10 Feb 2020 08:03:14 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KH79nf1r; 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 S1727722AbgBJQCz (ORCPT + 99 others); Mon, 10 Feb 2020 11:02:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:52478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727435AbgBJQCz (ORCPT ); Mon, 10 Feb 2020 11:02:55 -0500 Received: from localhost (unknown [104.132.1.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D901F20714; Mon, 10 Feb 2020 16:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581350574; bh=Q1XxZ284hQvopL8PCMcaI9qTASKF2EAuLbBnEBfyQnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KH79nf1ri/XHVY4R08gLMdl57id1OmMitFv2f+ol0fy7pY7cWZ3eP/UroEDbgXJKC skHb6ZOkWkdrSCibg/ncszrU/hE5GupyfQkgS7OsiL/+ezry2keuJql93DC2kWK1BG DM7mu/rpb+He9yFdZBNE3M7KXS9hCm7Hndj7d1Io= Date: Mon, 10 Feb 2020 08:02:52 -0800 From: Greg Kroah-Hartman To: Dietmar Eggemann Cc: Sudeep Holla , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vincent Guittot , Juri Lelli Subject: Re: [PATCH] drivers base/arch_topology: Remove 'struct sched_domain' forward declaration Message-ID: <20200210160252.GA702121@kroah.com> References: <20200210152420.10608-1-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210152420.10608-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 10, 2020 at 04:24:20PM +0100, Dietmar Eggemann wrote: > The sched domain pointer argument from topology_get_freq_scale() and > topology_get_cpu_scale() got removed by commit 7673c8a4c75d > ("sched/cpufreq: Remove arch_scale_freq_capacity()'s 'sd' parameter") > and commit 8ec59c0f5f49 ("sched/topology: Remove unused 'sd' parameter > from arch_scale_cpu_capacity()"). > > So the 'struct sched_domain' forward declaration is no longer needed. > Remove it. > > W/o the sched domain pointer argument the storage class and inline > definition as well as the return type, function name and parameter list > fit all into one line. > > Signed-off-by: Dietmar Eggemann > Reviewed-by: Sudeep Holla > --- > include/linux/arch_topology.h | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/include/linux/arch_topology.h b/include/linux/arch_topology.h > index 3015ecbb90b1..c507e9ddd909 100644 > --- a/include/linux/arch_topology.h > +++ b/include/linux/arch_topology.h > @@ -16,9 +16,7 @@ bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu); > > DECLARE_PER_CPU(unsigned long, cpu_scale); > > -struct sched_domain; > -static inline > -unsigned long topology_get_cpu_scale(int cpu) > +static inline unsigned long topology_get_cpu_scale(int cpu) > { > return per_cpu(cpu_scale, cpu); > } > @@ -27,8 +25,7 @@ void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); > > DECLARE_PER_CPU(unsigned long, freq_scale); > > -static inline > -unsigned long topology_get_freq_scale(int cpu) > +static inline unsigned long topology_get_freq_scale(int cpu) You are doing two different things in this patch :( Reformatting the function names are fine, but that has nothing to do with dropping the "struct sched_domain;" line. Please split into 2 different patches. thanks, greg k-h