mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
Linux build: silence objtool warnings
After #17401 the Linux build produces some stack related warnings. Silence them with the `STACK_FRAME_NON_STANDARD` macro. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Attila Fülöp <attila@fueloep.org> Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #17410
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#define _ASM
|
||||
#include <sys/asm_linkage.h>
|
||||
#include <sys/frame.h>
|
||||
|
||||
SECTION_STATIC
|
||||
|
||||
@@ -1420,6 +1421,7 @@ ENTRY_ALIGN(zfs_sha256_transform_x64, 16)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha256_transform_x64)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha256_transform_x64
|
||||
|
||||
ENTRY_ALIGN(zfs_sha256_transform_shani, 64)
|
||||
.cfi_startproc
|
||||
@@ -1628,6 +1630,7 @@ ENTRY_ALIGN(zfs_sha256_transform_shani, 64)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha256_transform_shani)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha256_transform_shani
|
||||
|
||||
ENTRY_ALIGN(zfs_sha256_transform_ssse3, 64)
|
||||
.cfi_startproc
|
||||
@@ -2739,6 +2742,7 @@ ENTRY_ALIGN(zfs_sha256_transform_ssse3, 64)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha256_transform_ssse3)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha256_transform_ssse3
|
||||
|
||||
ENTRY_ALIGN(zfs_sha256_transform_avx, 64)
|
||||
.cfi_startproc
|
||||
@@ -3813,6 +3817,7 @@ ENTRY_ALIGN(zfs_sha256_transform_avx, 64)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha256_transform_avx)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha256_transform_avx
|
||||
|
||||
ENTRY_ALIGN(zfs_sha256_transform_avx2, 64)
|
||||
.cfi_startproc
|
||||
@@ -5098,6 +5103,18 @@ ENTRY_ALIGN(zfs_sha256_transform_avx2, 64)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha256_transform_avx2)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha256_transform_avx2
|
||||
|
||||
/* Workaround for missing asm macro in RHEL 8. */
|
||||
#if defined(__linux__) && defined(HAVE_STACK_FRAME_NON_STANDARD) && \
|
||||
! defined(HAVE_STACK_FRAME_NON_STANDARD_ASM)
|
||||
.section .discard.func_stack_frame_non_standard, "aw"
|
||||
.long zfs_sha256_transform_x64 - .
|
||||
.long zfs_sha256_transform_shani - .
|
||||
.long zfs_sha256_transform_ssse3 - .
|
||||
.long zfs_sha256_transform_avx - .
|
||||
.long zfs_sha256_transform_avx2 - .
|
||||
#endif
|
||||
|
||||
#if defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#define _ASM
|
||||
#include <sys/asm_linkage.h>
|
||||
#include <sys/frame.h>
|
||||
|
||||
SECTION_STATIC
|
||||
|
||||
@@ -1463,6 +1464,7 @@ ENTRY_ALIGN(zfs_sha512_transform_x64, 16)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha512_transform_x64)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha512_transform_x64
|
||||
|
||||
ENTRY_ALIGN(zfs_sha512_transform_avx, 64)
|
||||
.cfi_startproc
|
||||
@@ -2627,6 +2629,7 @@ ENTRY_ALIGN(zfs_sha512_transform_avx, 64)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha512_transform_avx)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha512_transform_avx
|
||||
|
||||
ENTRY_ALIGN(zfs_sha512_transform_avx2, 64)
|
||||
.cfi_startproc
|
||||
@@ -4005,6 +4008,16 @@ ENTRY_ALIGN(zfs_sha512_transform_avx2, 64)
|
||||
RET
|
||||
.cfi_endproc
|
||||
SET_SIZE(zfs_sha512_transform_avx2)
|
||||
STACK_FRAME_NON_STANDARD zfs_sha512_transform_avx2
|
||||
|
||||
/* Workaround for missing asm macro in RHEL 8. */
|
||||
#if defined(__linux__) && defined(HAVE_STACK_FRAME_NON_STANDARD) && \
|
||||
! defined(HAVE_STACK_FRAME_NON_STANDARD_ASM)
|
||||
.section .discard.func_stack_frame_non_standard, "aw"
|
||||
.long zfs_sha512_transform_x64 - .
|
||||
.long zfs_sha512_transform_avx - .
|
||||
.long zfs_sha512_transform_avx2 - .
|
||||
#endif
|
||||
|
||||
#if defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
Reference in New Issue
Block a user