aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2023-04-14 08:06:56 +0000
committerHerbert Xu <[email protected]>2023-04-14 10:59:34 +0000
commit586d492f2856216b848062d7355f21d286de4677 (patch)
tree93f5c1c4fa1b14e1801fd2f8d42ea6511b2d7241 /lib/debugobjects.c
parentcrypto: caam - OP-TEE firmware support (diff)
downloadkernel-586d492f2856216b848062d7355f21d286de4677.tar.gz
kernel-586d492f2856216b848062d7355f21d286de4677.zip
crypto: ixp4xx - fix building wiht 64-bit dma_addr_t
The crypt_ctl structure must be exactly 64 bytes long to work correctly, and it has to be a power-of-two size to allow turning the 64-bit division in crypt_phys2virt() into a shift operation, avoiding the link failure: ERROR: modpost: "__aeabi_uldivmod" [drivers/crypto/intel/ixp4xx/ixp4xx_crypto.ko] undefined! The failure now shows up because the driver is available for compile testing after the move, and a previous fix turned the more descriptive BUILD_BUG_ON() into a link error. Change the variably-sized dma_addr_t into the expected 'u32' type that is needed for the hardware, and reinstate the size check for all 32-bit architectures to simplify debugging if it hits again. Fixes: 1bc7fdbf2677 ("crypto: ixp4xx - Move driver to drivers/crypto/intel/ixp4xx") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions