Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: arm64/crct10dif - use frame_push/pop macros consistently

Use the frame_push and frame_pop macros to set up the stack frame so
that return address protections will be enabled automically when
configured.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Ard Biesheuvel and committed by
Herbert Xu
489a4a05 7d709af1

+2 -3
+2 -3
arch/arm64/crypto/crct10dif-ce-core.S
··· 429 429 430 430 umov w0, v0.h[0] 431 431 .ifc \p, p8 432 - ldp x29, x30, [sp], #16 432 + frame_pop 433 433 .endif 434 434 ret 435 435 ··· 466 466 // Assumes len >= 16. 467 467 // 468 468 SYM_FUNC_START(crc_t10dif_pmull_p8) 469 - stp x29, x30, [sp, #-16]! 470 - mov x29, sp 469 + frame_push 1 471 470 crc_t10dif_pmull p8 472 471 SYM_FUNC_END(crc_t10dif_pmull_p8) 473 472