diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2025-08-11 11:26:31 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2025-08-11 11:28:00 -0700 |
| commit | c2a0c5156a40c40edb0cce80ce11c97ab39c67e3 (patch) | |
| tree | e7b920ccfde2ab0415df8fbc4ef9b568e9b684d2 /lib/test_fortify/write_overflow-strncpy-src.c | |
| parent | lib/crc: crc_kunit: Test CRC computation in interrupt contexts (diff) | |
| download | linux-c2a0c5156a40c40edb0cce80ce11c97ab39c67e3.tar.gz linux-c2a0c5156a40c40edb0cce80ce11c97ab39c67e3.zip | |
lib/crc: Use underlying functions instead of crypto_simd_usable()
Since crc_kunit now tests the fallback code paths without using
crypto_simd_disabled_for_test, make the CRC code just use the underlying
may_use_simd() and irq_fpu_usable() functions directly instead of
crypto_simd_usable(). This eliminates an unnecessary layer.
Take the opportunity to add likely() and unlikely() annotations as well.
Link: https://lore.kernel.org/r/20250811182631.376302-4-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions
