crypto/aes.c:12:1: sparse: sparse: static assertion failed: "__alignof__(struct aes_key) <= CRYPTO_MINALIGN"
From: kernel test robot
Date: Fri Jul 31 2026 - 00:14:43 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ba098e6b6ff0db8edf28528d1552be261af30d4
commit: 0892c91b81cc889c95dc03b095b9f4a6fdf93106 lib/crypto: powerpc/aes: Migrate SPE optimized code into library
date: 7 months ago
config: powerpc-randconfig-r131-20260731 (https://download.01.org/0day-ci/archive/20260731/202607311226.LZ6GtJxN-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 9.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260731/202607311226.LZ6GtJxN-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: 0892c91b81cc ("lib/crypto: powerpc/aes: Migrate SPE optimized code into library")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607311226.LZ6GtJxN-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> crypto/aes.c:12:1: sparse: sparse: static assertion failed: "__alignof__(struct aes_key) <= CRYPTO_MINALIGN"
vim +12 crypto/aes.c
a2484474272ef9 Eric Biggers 2026-01-12 11
a2484474272ef9 Eric Biggers 2026-01-12 @12 static_assert(__alignof__(struct aes_key) <= CRYPTO_MINALIGN);
a2484474272ef9 Eric Biggers 2026-01-12 13
:::::: The code at line 12 was first introduced by commit
:::::: a2484474272ef98d9580d8c610b0f7c6ed2f146c crypto: aes - Replace aes-generic with wrapper around lib
:::::: TO: Eric Biggers <ebiggers@xxxxxxxxxx>
:::::: CC: Eric Biggers <ebiggers@xxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki