Skip to content

Commit 8ae8a49

Browse files
committed
crypto: ixp4xx - Do not check word size when compile testing
The BUILD_BUG_ON preventing compilation on foreign architectures should be disabled when we're doing compile testing. Fixes: 1bc7fdb ("crypto: ixp4xx - Move driver to...") Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/oe-kbuild-all/202304061846.G6cpPXiQ-lkp@intel.com/ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent a2216e1 commit 8ae8a49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ static int setup_crypt_desc(void)
263263
{
264264
struct device *dev = &pdev->dev;
265265

266-
BUILD_BUG_ON(sizeof(struct crypt_ctl) != 64);
266+
BUILD_BUG_ON(!IS_ENABLED(CONFIG_COMPILE_TEST) &&
267+
sizeof(struct crypt_ctl) != 64);
267268
crypt_virt = dma_alloc_coherent(dev,
268269
NPE_QLEN * sizeof(struct crypt_ctl),
269270
&crypt_phys, GFP_ATOMIC);

0 commit comments

Comments
 (0)