Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3844337ybv; Mon, 10 Feb 2020 07:25:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwtKlEqELg+0Wlg7C9+UFPwSCnKMhnV+rNpTL+lTFZsLPgUPUUj3EIM7kqdIyRC4mGSAFPf X-Received: by 2002:a05:6830:1bd5:: with SMTP id v21mr1565174ota.154.1581348330626; Mon, 10 Feb 2020 07:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581348330; cv=none; d=google.com; s=arc-20160816; b=mylsbbarm3ay2fpUi8XvXTFd5UbFMmk5q0vA9BvS1pptAX++2Otpn2bmaEIeAGxKqm j/x2kJepHiAQarojyXNecgqfiRIcCzAw2k+UtSW9nao8aYqsctagvBItXYULh7BB5SEw RvvJ0O+EhBwobtpzoDvK0QseguT97u2NgooJwty2NA3G1JFOpk/pDj3imxQXAsf0053M vw/iHr7sZGuoQZftgUzfH8kcK3UX49talI4VSqYtBnrflVJku3atd5oAf6bGt/aTWv4X ZxaLJBOdr0dkbRrPGF9i+EbiwN1c19FnL0WnZEICRT8Jqb4GK9r9LjJv5o4Pi2hpbPKo WhGQ== 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=1znCx3Ih+OEtwPHWMJ43kbaKHwFU45lmMo12VN/oWeI=; b=Vdc1jlixVambudrKflT/Oq4LUPKf7HDO+CpqvTXnL7jDtc5FyEX6hdgoYoXu1UrD/H BeQ3bjFc0aTscmg/JeJjcGI/2M8nkS/ij2Mvpj35Y/N5TQlOs4tybpuAMVA387jYC63g ljJRfmGBhdX1E0ofRVFUGuFlG4AYou2gQLlz7DPVrbhsDX83CmBj9JgKQ1jb5zdTTeTE ewOxCjmTdRqG+73Xi0Du5iKF+u+q/MWvVfvfWijAN48BwNLyOf57vEanK861XN6UwqWN rfhO5+HPQF/R2h8wfdn7Cf9vGcOlj5T6azxNRbSnixW63OEbho3Zf7hp2UIyobKMY/n+ SwdA== 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 107si317371oth.14.2020.02.10.07.25.18; Mon, 10 Feb 2020 07:25: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 S1727595AbgBJPYl (ORCPT + 99 others); Mon, 10 Feb 2020 10:24:41 -0500 Received: from foss.arm.com ([217.140.110.172]:35174 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbgBJPYl (ORCPT ); Mon, 10 Feb 2020 10:24:41 -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 782AD1FB; Mon, 10 Feb 2020 07:24:40 -0800 (PST) Received: from dell3630.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5E7983F68E; Mon, 10 Feb 2020 07:24:39 -0800 (PST) From: Dietmar Eggemann To: Sudeep Holla , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Vincent Guittot , Juri Lelli Subject: [PATCH] drivers base/arch_topology: Remove 'struct sched_domain' forward declaration Date: Mon, 10 Feb 2020 16:24:20 +0100 Message-Id: <20200210152420.10608-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 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) { return per_cpu(freq_scale, cpu); } -- 2.17.1