diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2019-04-15 12:41:08 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-04-17 10:40:57 +0200 |
commit | 35af0d469c6694c05f06e75c5d75caee9be66122 (patch) | |
tree | a36366b2e28786b48a1e0ae93f509fe3d07171f2 /arch/s390/kernel/fpu.c | |
parent | s390/pkey: add one more argument space for debug feature entry (diff) | |
download | linux-35af0d469c6694c05f06e75c5d75caee9be66122.tar.xz linux-35af0d469c6694c05f06e75c5d75caee9be66122.zip |
s390: correct some inline assembly constraints
Inline assembly code changed in this patch should really use "Q"
constraint "Memory reference without index register and with short
displacement". The kernel build with kasan instrumentation enabled
might occasionally break otherwise (due to stack instrumentation).
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/fpu.c')
-rw-r--r-- | arch/s390/kernel/fpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/fpu.c b/arch/s390/kernel/fpu.c index 594464f2129d..0da378e2eb25 100644 --- a/arch/s390/kernel/fpu.c +++ b/arch/s390/kernel/fpu.c @@ -23,7 +23,7 @@ void __kernel_fpu_begin(struct kernel_fpu *state, u32 flags) if (flags & KERNEL_FPC) /* Save floating point control */ - asm volatile("stfpc %0" : "=m" (state->fpc)); + asm volatile("stfpc %0" : "=Q" (state->fpc)); if (!MACHINE_HAS_VX) { if (flags & KERNEL_VXR_V0V7) { |