]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: aes: Drop 'volatile' from aes_sbox and aes_inv_sbox
authorEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:20:33 +0000 (11:20 -0800)
committerEric Biggers <ebiggers@kernel.org>
Thu, 15 Jan 2026 22:09:09 +0000 (14:09 -0800)
commitfbfeca74043777b48add294089cd4c4f68ed3377
tree608efdb029f9f5e4106a8a77ddbfd6b65955c026
parent953f2db0bfc2ab68e69f385441d0f4b54aee0cd1
lib/crypto: aes: Drop 'volatile' from aes_sbox and aes_inv_sbox

The volatile keyword is no longer necessary or useful on aes_sbox and
aes_inv_sbox, since the table prefetching is now done using a helper
function that casts to volatile itself and also includes an optimization
barrier.  Since it prevents some compiler optimizations, remove it.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260112192035.10427-36-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/aes.c