mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
Merge tag 'libcrypto-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux
Pull crypto library fixes from Eric Biggers: - Fix a performance issue with the scoped_ksimd() macro (new in 6.19) where it unnecessarily initialized the entire fpsimd state. - Add a missing gitignore entry for a generated file added in 6.18. * tag 'libcrypto-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux: lib/crypto: riscv: Add poly1305-core.S to .gitignore arm64/simd: Avoid pointless clearing of FP/SIMD buffer
This commit is contained in:
@@ -48,6 +48,13 @@ DEFINE_LOCK_GUARD_1(ksimd,
|
||||
kernel_neon_begin(_T->lock),
|
||||
kernel_neon_end(_T->lock))
|
||||
|
||||
#define scoped_ksimd() scoped_guard(ksimd, &(struct user_fpsimd_state){})
|
||||
#define __scoped_ksimd(_label) \
|
||||
for (struct user_fpsimd_state __uninitialized __st; \
|
||||
true; ({ goto _label; })) \
|
||||
if (0) { \
|
||||
_label: break; \
|
||||
} else scoped_guard(ksimd, &__st)
|
||||
|
||||
#define scoped_ksimd() __scoped_ksimd(__UNIQUE_ID(label))
|
||||
|
||||
#endif
|
||||
|
||||
2
lib/crypto/riscv/.gitignore
vendored
Normal file
2
lib/crypto/riscv/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
poly1305-core.S
|
||||
Reference in New Issue
Block a user