Commit 8ae8a494 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: 1bc7fdbf ("crypto: ixp4xx - Move driver to...")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304061846.G6cpPXiQ-lkp@intel.com/


Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a2216e18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -263,7 +263,8 @@ static int setup_crypt_desc(void)
{
	struct device *dev = &pdev->dev;

	BUILD_BUG_ON(sizeof(struct crypt_ctl) != 64);
	BUILD_BUG_ON(!IS_ENABLED(CONFIG_COMPILE_TEST) &&
		     sizeof(struct crypt_ctl) != 64);
	crypt_virt = dma_alloc_coherent(dev,
					NPE_QLEN * sizeof(struct crypt_ctl),
					&crypt_phys, GFP_ATOMIC);