Skip to content

Commit

Permalink
crypto: ixp4xx - Do not check word size when compile testing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
herbertx committed Apr 11, 2023
1 parent a2216e1 commit 8ae8a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8ae8a49

Please sign in to comment.