diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-04-09 15:46:59 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-04-11 10:21:26 +0800 |
commit | 8ae8a494eae4e7e262a7212061db90210efd2d28 (patch) | |
tree | dfca61873ab50c1f007edfc064c23bd81557a528 /drivers | |
parent | a2216e1874715a8b4a6f4da2ddbe9277e5613c49 (diff) | |
download | linux-stable-8ae8a494eae4e7e262a7212061db90210efd2d28.tar.gz linux-stable-8ae8a494eae4e7e262a7212061db90210efd2d28.tar.bz2 linux-stable-8ae8a494eae4e7e262a7212061db90210efd2d28.zip |
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: 1bc7fdbf2677 ("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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c b/drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c index b63e2359a133..5d640f13ad1c 100644 --- a/drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c +++ b/drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c @@ -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); |