diff options
| author | Vasily Gorbik <[email protected]> | 2022-01-28 23:34:13 +0000 |
|---|---|---|
| committer | Vasily Gorbik <[email protected]> | 2022-03-01 20:05:09 +0000 |
| commit | 42b01a553a56d9bc7c75b700fd274f1ec4a3763f (patch) | |
| tree | 271b1feda483bd44fcaa8ef6b3ae0ead79b5ab5d /arch/s390/include/asm/stacktrace.h | |
| parent | Merge branch 'fixes' into features (diff) | |
| download | kernel-42b01a553a56d9bc7c75b700fd274f1ec4a3763f.tar.gz kernel-42b01a553a56d9bc7c75b700fd274f1ec4a3763f.zip | |
s390: always use the packed stack layout
-mpacked-stack option has been supported by both minimum
gcc and clang versions for a while. With commit e2bc3e91d91e
("scripts/min-tool-version.sh: Raise minimum clang version to 13.0.0
for s390") minimum clang version now also supports a combination
of flags -mpacked-stack -mbackchain -pg -mfentry and fulfills
all requirements to always enable the packed stack layout.
Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'arch/s390/include/asm/stacktrace.h')
| -rw-r--r-- | arch/s390/include/asm/stacktrace.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/s390/include/asm/stacktrace.h b/arch/s390/include/asm/stacktrace.h index dd00d98804ec..275f4258fbd5 100644 --- a/arch/s390/include/asm/stacktrace.h +++ b/arch/s390/include/asm/stacktrace.h @@ -36,22 +36,14 @@ static inline bool on_stack(struct stack_info *info, /* * Stack layout of a C stack frame. + * Kernel uses the packed stack layout (-mpacked-stack). */ -#ifndef __PACK_STACK -struct stack_frame { - unsigned long back_chain; - unsigned long empty1[5]; - unsigned long gprs[10]; - unsigned int empty2[8]; -}; -#else struct stack_frame { unsigned long empty1[5]; unsigned int empty2[8]; unsigned long gprs[10]; unsigned long back_chain; }; -#endif /* * Unlike current_stack_pointer() which simply returns current value of %r15 |
