Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp521353ybv; Fri, 7 Feb 2020 03:50:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxJMXqbI04HfbSnIiDoRysdmxXhAYqq8kMGpnrLSDsFVj2bd5m79/kWwRy628CzWRxYfidJ X-Received: by 2002:a9d:4d17:: with SMTP id n23mr2415089otf.85.1581076230354; Fri, 07 Feb 2020 03:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581076230; cv=none; d=google.com; s=arc-20160816; b=H0MTNgP3xRnKUE4A9L0lUNNoKqj+SaUF319ukPN0w9NIgGXFplkkeHFKUOn9T+dLn5 8knGA58EIfIwzAu0+oTPJQHlrcYyYgC5ZthGxmuE+3ZIOE95iQn4j/D5yDdWUX9pbdZY Y1qeJgjHSrmT3kHXWoRt2aEy01+KzSjpctRwsl4mEfkqCOWoeMXFhOC3Ki+6nDHCAVgA jrt9ae24FpPx8IAaTLhanLzXDvNvOMp6uRxRMQU100YVIfwtwwsi7plHi+wyN2cdgqBh M6R4PlDiOxEdDKPlsOi1OsnAGrW/0RNkRmS20SGCRQn7rbBw+nCqQRYqySChDblccP7h IUfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=G7g3W9o4Djf+4Slb228m35WLjNg8KB8v9OXWNUyVp3M=; b=nVb+f37reEz1oVb/UOXXco+TjS+ipqEh4d4Ydj//8k8l2270/MvixsGV7/hwyJT5vm 0bC42mxq0hjkRoXyBO2RdGvFxTkTpxXY5brG5MMabuoFah6Uy2l0/8ia3QXOa7pFe+3y KMM5gP8m00TerfnfyKKY7D6bD4czQ5x/3GStNwCLrsfOhXkHc16PLx1LdRl6VjOPbxLD C9KXYlFG8UmnVJTkC6iVVyPvxMwACHcqjnEY9K2+klZBPFwz3c8HJ3rqqYPLEknOFogk znmmqrReWAJ/8MpBlQy32E+lMN2PoEoJ5LBRJJimoca0hTbO7oPeY7DezTQUY/fB7etN 9RJQ== 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 v24si1628164otn.125.2020.02.07.03.50.17; Fri, 07 Feb 2020 03:50:30 -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 S1726890AbgBGLtY (ORCPT + 99 others); Fri, 7 Feb 2020 06:49:24 -0500 Received: from foss.arm.com ([217.140.110.172]:39466 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbgBGLtY (ORCPT ); Fri, 7 Feb 2020 06:49:24 -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 E22D3328; Fri, 7 Feb 2020 03:49:23 -0800 (PST) Received: from dell3630.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D052C3F68E; Fri, 7 Feb 2020 03:49:22 -0800 (PST) From: Dietmar Eggemann To: Sudeep Holla , linux-kernel@vger.kernel.org Cc: Vincent Guittot , Juri Lelli , linux-arm-kernel@lists.infradead.org Subject: [PATCH] drivers base/arch_topology: Remove 'struct sched_domain' forward declaration Date: Fri, 7 Feb 2020 12:49:13 +0100 Message-Id: <20200207114913.3052-1-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) { return per_cpu(freq_scale, cpu); } -- 2.17.1