From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76254C433EF for ; Tue, 19 Oct 2021 17:23:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B86B61360 for ; Tue, 19 Oct 2021 17:23:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234612AbhJSRZz (ORCPT ); Tue, 19 Oct 2021 13:25:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:54004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233460AbhJSRZz (ORCPT ); Tue, 19 Oct 2021 13:25:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 05D1F61212; Tue, 19 Oct 2021 17:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634664222; bh=ajUFFSTv9Xe/upb2ehZFq+kHiuY4thdCEVsSHOKL97Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MFb0TkMmlaO0CuaKqJERKzhyMDZ80RD+jdwDJy+y4+Ow07ozNn9uwSvSEJrLIymxI tKLGXFgjbAKaKyga5ie/5dy+wdzGcM8czww8q8UF2Ckaafqyb8SrghxWjZvciCYJGW 1RchFp1iFjlp41bheyz/f+c5nikQ25U5jQ5PLzhGiVDwOJ26fxLJQQJxb/Du0sGhSO ynl4+4lt+J8wt7+5m8deGhtUJWCT+vZxSHFm41z16q+7/8YHSi/5leiQhouzuFirID YkUg9ablxZVSPCaION3XCZJpsdTcWdKyizMRXgw4pUwzSpSschKgSm+7MpchTjb3Om tezwJwj6mu57g== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 03/42] arm64/sve: Make sve_state_size() static Date: Tue, 19 Oct 2021 18:22:08 +0100 Message-Id: <20211019172247.3045838-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211019172247.3045838-1-broonie@kernel.org> References: <20211019172247.3045838-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1440; h=from:subject; bh=ajUFFSTv9Xe/upb2ehZFq+kHiuY4thdCEVsSHOKL97Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhbv7GT4KSr1hE7x4IGXRxcpaK4VMzer9Oc+NVFHS8 n1d6Mt2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYW7+xgAKCRAk1otyXVSH0PNIB/ 4jzGC+HqZNN+LDqhqau2J5foBxmYin7eUFYCftTwOA32+70MvHPH+pJEE9AtpWrniDanqCgLbNP8gB ijK3Zwz+n8VHJX500uoUiDuCL4aZerlWyc5nsls5bs+KILWG5NSReYAEXqwqE6CSmMbeWjZgtkxR1o KBO1eWA2DgEo+HTf7AHfaGuSaU1N203xb5pcdHhCCyYLFmHAV5byzS6esjg568DxRlsjkdfu6AQWAY VKEo1BwV4dJBlWRFowtIbIDzyPa5+WBsizj5Hccwph4gAPjXVfXGuG8IybzePd0f4n8GhRVmbuMbFj 8koqU0aefnk9UWZ1uY5AHOMkNbImo0 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org There are no users outside fpsimd.c so make sve_state_size() static. KVM open codes an equivalent. Signed-off-by: Mark Brown --- arch/arm64/include/asm/fpsimd.h | 2 -- arch/arm64/kernel/fpsimd.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h index e0e30567b80f..917ecc301d1d 100644 --- a/arch/arm64/include/asm/fpsimd.h +++ b/arch/arm64/include/asm/fpsimd.h @@ -104,8 +104,6 @@ static inline bool sve_vq_available(unsigned int vq) #ifdef CONFIG_ARM64_SVE -extern size_t sve_state_size(struct task_struct const *task); - extern void sve_alloc(struct task_struct *task); extern void fpsimd_release_task(struct task_struct *task); extern void fpsimd_sync_to_sve(struct task_struct *task); diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 995f8801602b..0f6df1ece618 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -497,7 +497,7 @@ static void sve_to_fpsimd(struct task_struct *task) * Return how many bytes of memory are required to store the full SVE * state for task, given task's currently configured vector length. */ -size_t sve_state_size(struct task_struct const *task) +static size_t sve_state_size(struct task_struct const *task) { return SVE_SIG_REGS_SIZE(sve_vq_from_vl(task->thread.sve_vl)); } -- 2.30.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AD9CC433EF for ; Tue, 19 Oct 2021 17:25:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F50B610E5 for ; Tue, 19 Oct 2021 17:25:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0F50B610E5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Iu2nfWH+npaxJyuX7o+Mjh2bCvHy6R7DP7juYUq2gK0=; b=ioNGWYoMe6h6pC EOXs5XPOPxAMAP3mH54KmqPlfUNOjZb5Od6wddJlNZaTpiBKcZEXLPZR+Jlhv28RCcTn53CONWfiN gdfXwwBg891bOezsnkV9tqkBhfV4lN5Nyrj7Hdv6tYTwtDJO2HO3bGu6qi9Wya9Lwbt2rh4hesZWC Tb/sRZmUeGV0C1u8NLwbG53Kvz/Fk3AuvIj2+D0lQ7BDQzdb8PubYliclheeHhH4wDFycfU4WKBnD ZX7mXfv0fDZUY/1wEyRd3ImoUltR4UOwQ51bPNYNB6+dXo9a0y0abaFWejzo4YBhaFdt6QIeMLTGw opT+TGGmvYibd6ZwzlhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcsqW-00258S-MW; Tue, 19 Oct 2021 17:24:17 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcspy-0024zo-Qu for linux-arm-kernel@lists.infradead.org; Tue, 19 Oct 2021 17:23:44 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 05D1F61212; Tue, 19 Oct 2021 17:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634664222; bh=ajUFFSTv9Xe/upb2ehZFq+kHiuY4thdCEVsSHOKL97Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MFb0TkMmlaO0CuaKqJERKzhyMDZ80RD+jdwDJy+y4+Ow07ozNn9uwSvSEJrLIymxI tKLGXFgjbAKaKyga5ie/5dy+wdzGcM8czww8q8UF2Ckaafqyb8SrghxWjZvciCYJGW 1RchFp1iFjlp41bheyz/f+c5nikQ25U5jQ5PLzhGiVDwOJ26fxLJQQJxb/Du0sGhSO ynl4+4lt+J8wt7+5m8deGhtUJWCT+vZxSHFm41z16q+7/8YHSi/5leiQhouzuFirID YkUg9ablxZVSPCaION3XCZJpsdTcWdKyizMRXgw4pUwzSpSschKgSm+7MpchTjb3Om tezwJwj6mu57g== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 03/42] arm64/sve: Make sve_state_size() static Date: Tue, 19 Oct 2021 18:22:08 +0100 Message-Id: <20211019172247.3045838-4-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211019172247.3045838-1-broonie@kernel.org> References: <20211019172247.3045838-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1440; h=from:subject; bh=ajUFFSTv9Xe/upb2ehZFq+kHiuY4thdCEVsSHOKL97Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhbv7GT4KSr1hE7x4IGXRxcpaK4VMzer9Oc+NVFHS8 n1d6Mt2JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYW7+xgAKCRAk1otyXVSH0PNIB/ 4jzGC+HqZNN+LDqhqau2J5foBxmYin7eUFYCftTwOA32+70MvHPH+pJEE9AtpWrniDanqCgLbNP8gB ijK3Zwz+n8VHJX500uoUiDuCL4aZerlWyc5nsls5bs+KILWG5NSReYAEXqwqE6CSmMbeWjZgtkxR1o KBO1eWA2DgEo+HTf7AHfaGuSaU1N203xb5pcdHhCCyYLFmHAV5byzS6esjg568DxRlsjkdfu6AQWAY VKEo1BwV4dJBlWRFowtIbIDzyPa5+WBsizj5Hccwph4gAPjXVfXGuG8IybzePd0f4n8GhRVmbuMbFj 8koqU0aefnk9UWZ1uY5AHOMkNbImo0 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211019_102342_909551_83351B4E X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are no users outside fpsimd.c so make sve_state_size() static. KVM open codes an equivalent. Signed-off-by: Mark Brown --- arch/arm64/include/asm/fpsimd.h | 2 -- arch/arm64/kernel/fpsimd.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h index e0e30567b80f..917ecc301d1d 100644 --- a/arch/arm64/include/asm/fpsimd.h +++ b/arch/arm64/include/asm/fpsimd.h @@ -104,8 +104,6 @@ static inline bool sve_vq_available(unsigned int vq) #ifdef CONFIG_ARM64_SVE -extern size_t sve_state_size(struct task_struct const *task); - extern void sve_alloc(struct task_struct *task); extern void fpsimd_release_task(struct task_struct *task); extern void fpsimd_sync_to_sve(struct task_struct *task); diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 995f8801602b..0f6df1ece618 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -497,7 +497,7 @@ static void sve_to_fpsimd(struct task_struct *task) * Return how many bytes of memory are required to store the full SVE * state for task, given task's currently configured vector length. */ -size_t sve_state_size(struct task_struct const *task) +static size_t sve_state_size(struct task_struct const *task) { return SVE_SIG_REGS_SIZE(sve_vq_from_vl(task->thread.sve_vl)); } -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel