Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1521311pxb; Wed, 20 Oct 2021 06:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdqCwOf8i4YpOrtWOzsC1Uci8DfLnpb28JCEUsELXkA2byHLNH1Tdf54p794++op0mhDSc X-Received: by 2002:a63:b203:: with SMTP id x3mr61336pge.239.1634737662645; Wed, 20 Oct 2021 06:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634737662; cv=none; d=google.com; s=arc-20160816; b=jPJQo/SUMqBDwf8fQtjIVA2brVaDqEr6xsglTSAe5iooGbtJvcXt0AUV7FkEkJFJqq Hbn5+YfI0VOApzS0OWt7oQmozPqHEFRS8LUwfHQtBlCSaE0GblULLIi4p6TQqK+ugBz1 kLCETKsOziZMacmGm3d7zLLsob9vabhTeRaUGTb3dFH4Mlq89LTet4DroltL09Gi00Sd Ofb8xo6M09CDmCBHru5ZUiw91YxZIZ4VX5ouLQCeGCq3PNWxAUWozKPM/HjnmV8afhy5 IJUR1fzsTxUM7uee7nqIOgN7zYOsvE9QVPSO5Z8jwCIWPgd+zI3keBDGlGx6ZvHdn2BJ bbyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=bDbPnI8kBoDSSqPBYyW0gRtsMDXRGIoHSwEZ6XOwPH0=; b=r2oNP+zDJdEqIXeSHPbUdwxO1MRxUf1xe6ht5Vo2vLrbAsQI10WAiTQ4xgIyh5BmRm vNg3nocXDf4phVpg66JVr5w0uFyleeQVp3f5mTLZ1XhegyE3wfnNtP34FBXdXGTky1+Y +T5edqEu7P6mKb94X7pzaMd24J9yDYGeMi0Hyjk7SITlhGcfqt3DffpDYRPRIFZlpGLO 32Rq8cAHU6bkAUvDWx+xWyt6TPhiA7QCPyI4MCgv5VsNDLnOLau9Z/W3P+3gQvJ6amgX 84ltSX6wXudfqcN0idY8xwdHdmDyobXPQ1ufV9dcw43ozu23WGPR71YrJC/7rkwTGyxa j9zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=utDrMkxl; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si3455271pgv.383.2021.10.20.06.47.29; Wed, 20 Oct 2021 06:47:42 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=utDrMkxl; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbhJTNrb (ORCPT + 99 others); Wed, 20 Oct 2021 09:47:31 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:52982 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbhJTNqx (ORCPT ); Wed, 20 Oct 2021 09:46:53 -0400 Date: Wed, 20 Oct 2021 13:44:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1634737477; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bDbPnI8kBoDSSqPBYyW0gRtsMDXRGIoHSwEZ6XOwPH0=; b=utDrMkxlC8E+JfhVmACur42H19/HeExvoBMUwSB4Zr+ZDVn11hOKcZkRyGp9/jx1jufBP7 mvt3/kr0jHWuuVbQ9cmSzmF7If1//Ve8oljbHs7y47PhymhMzJ0cGx3/Jdfd6Mdwy+Wo4v wpS6nBLni0Z1BWVBoPwCWgWWMQxec6opK4C7xsZZn/JhSKWImzFJCl914bho8mrDwweDrR L9X5ON718cYDnlg2Aohat4PYKbZmTZTT04H7IMvDxyW55atmuwYWMcGmhDV1Yo8GiDnyRr CVbCWod1oZ0plmCtCQk2fPF7q/jhc8t9F+ObuPKw0TvXRigdRLG3tSA0RcljlQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1634737477; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bDbPnI8kBoDSSqPBYyW0gRtsMDXRGIoHSwEZ6XOwPH0=; b=7Y1edulM0CBL5jS4sZXj68sBiBP7Z0A42wlOfiM8HwMghSjwON+UuY97pecYfOjs/oRa3p soMv/nrtHFlGIFAQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/fpu] x86/fpu: Mark fpu__init_prepare_fx_sw_frame() as __init Cc: Thomas Gleixner , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20211015011539.296435736@linutronix.de> References: <20211015011539.296435736@linutronix.de> MIME-Version: 1.0 Message-ID: <163473747688.25758.8190307736931364512.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/fpu branch of tip: Commit-ID: 9603445549dacd7688532a4076c377e43a3ecfce Gitweb: https://git.kernel.org/tip/9603445549dacd7688532a4076c377e43a3ecfce Author: Thomas Gleixner AuthorDate: Fri, 15 Oct 2021 03:16:18 +02:00 Committer: Borislav Petkov CommitterDate: Wed, 20 Oct 2021 15:27:27 +02:00 x86/fpu: Mark fpu__init_prepare_fx_sw_frame() as __init No need to keep it around. Signed-off-by: Thomas Gleixner Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20211015011539.296435736@linutronix.de --- arch/x86/include/asm/fpu/signal.h | 2 -- arch/x86/kernel/fpu/internal.h | 8 ++++++++ arch/x86/kernel/fpu/signal.c | 4 +++- arch/x86/kernel/fpu/xstate.c | 1 + 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 arch/x86/kernel/fpu/internal.h diff --git a/arch/x86/include/asm/fpu/signal.h b/arch/x86/include/asm/fpu/signal.h index 8b6631d..04868a7 100644 --- a/arch/x86/include/asm/fpu/signal.h +++ b/arch/x86/include/asm/fpu/signal.h @@ -31,6 +31,4 @@ fpu__alloc_mathframe(unsigned long sp, int ia32_frame, unsigned long fpu__get_fpstate_size(void); -extern void fpu__init_prepare_fx_sw_frame(void); - #endif /* _ASM_X86_FPU_SIGNAL_H */ diff --git a/arch/x86/kernel/fpu/internal.h b/arch/x86/kernel/fpu/internal.h new file mode 100644 index 0000000..036f84c --- /dev/null +++ b/arch/x86/kernel/fpu/internal.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __X86_KERNEL_FPU_INTERNAL_H +#define __X86_KERNEL_FPU_INTERNAL_H + +/* Init functions */ +extern void fpu__init_prepare_fx_sw_frame(void); + +#endif diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c index e257805..2a4d1d0 100644 --- a/arch/x86/kernel/fpu/signal.c +++ b/arch/x86/kernel/fpu/signal.c @@ -16,6 +16,8 @@ #include #include +#include "internal.h" + static struct _fpx_sw_bytes fx_sw_reserved __ro_after_init; static struct _fpx_sw_bytes fx_sw_reserved_ia32 __ro_after_init; @@ -514,7 +516,7 @@ unsigned long fpu__get_fpstate_size(void) * This will be saved when ever the FP and extended state context is * saved on the user stack during the signal handler delivery to the user. */ -void fpu__init_prepare_fx_sw_frame(void) +void __init fpu__init_prepare_fx_sw_frame(void) { int size = fpu_user_xstate_size + FP_XSTATE_MAGIC2_SIZE; diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index b2537a8..1f5a66a 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c @@ -19,6 +19,7 @@ #include +#include "internal.h" #include "xstate.h" #define for_each_extended_xfeature(bit, mask) \