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: 1bc7fdbf26 ("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>
pull/795/merge
parent
a2216e1874
commit
8ae8a494ea
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue