From 9cbff7f2214d16af5c10f1f55ac72d4c1a8bd787 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Sat, 3 Feb 2024 11:45:14 +0100 Subject: s390/fpu: remove regs member from struct fpu KVM was the only user which modified the regs pointer in struct fpu. Remove the pointer and convert the rest of the core fpu code to directly access the save area embedded within struct fpu. Reviewed-by: Claudio Imbrenda Signed-off-by: Heiko Carstens --- arch/s390/include/asm/fpu-types.h | 1 - arch/s390/include/asm/processor.h | 1 - 2 files changed, 2 deletions(-) (limited to 'arch/s390/include/asm') diff --git a/arch/s390/include/asm/fpu-types.h b/arch/s390/include/asm/fpu-types.h index fee4468a85d3..f5b6fab30401 100644 --- a/arch/s390/include/asm/fpu-types.h +++ b/arch/s390/include/asm/fpu-types.h @@ -13,7 +13,6 @@ struct fpu { __u32 fpc; /* Floating-point control */ - void *regs; /* Pointer to the current save area */ union { /* Floating-point register save area */ freg_t fprs[__NUM_FPRS]; diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index eee0a1eec620..ecce58abf3db 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -202,7 +202,6 @@ typedef struct thread_struct thread_struct; #define INIT_THREAD { \ .ksp = sizeof(init_stack) + (unsigned long) &init_stack, \ - .ufpu.regs = (void *)init_task.thread.ufpu.fprs, \ .last_break = 1, \ } -- cgit v1.2.3