Re: [herbert-cryptodev-2.6:master 99/105] include/linux/compiler_types.h:397:45: error: call to '__compiletime_assert_385' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct crypt_ctl) != 64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2023-04-06 at 18:28 +0800, kernel test robot wrote:
> tree:  
> https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
>  master
> head:   a2216e1874715a8b4a6f4da2ddbe9277e5613c49
> commit: 1bc7fdbf2677cc1866c025e5a393811ea8e25486 [99/105] crypto:
> ixp4xx - Move driver to drivers/crypto/intel/ixp4xx
> config: riscv-allmodconfig
> (https://download.01.org/0day-ci/archive/20230406/202304061846.G6cpPX
> iQ-lkp@xxxxxxxxx/config)
> compiler: riscv64-linux-gcc (GCC) 12.1.0
> reproduce (this is a W=1 build):
>         wget
> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
>  -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         #
> https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=1bc7fdbf2677cc1866c025e5a393811ea8e25486
>         git remote add herbert-cryptodev-2.6
> https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
>         git fetch --no-tags herbert-cryptodev-2.6 master
>         git checkout 1bc7fdbf2677cc1866c025e5a393811ea8e25486
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0
> make.cross W=1 O=build_dir ARCH=riscv olddefconfig
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0
> make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
> drivers/crypto/intel/ixp4xx/
> 
> If you fix the issue, kindly add following tag where applicable
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Link:
> > https://lore.kernel.org/oe-kbuild-all/202304061846.G6cpPXiQ-lkp@xxxxxxxxx/
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from <command-line>:
>    In function 'setup_crypt_desc',
>        inlined from 'get_crypt_desc' at
> drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c:285:3:
> > > include/linux/compiler_types.h:397:45: error: call to
> > > '__compiletime_assert_385' declared with attribute error:
> > > BUILD_BUG_ON failed: sizeof(struct crypt_ctl) != 64
>      397 |         _compiletime_assert(condition, msg,
> __compiletime_assert_, __COUNTER__)
>          |                                             ^
>    include/linux/compiler_types.h:378:25: note: in definition of
> macro '__compiletime_assert'
>      378 |                         prefix ##
> suffix();                             \
>          |                         ^~~~~~
>    include/linux/compiler_types.h:397:9: note: in expansion of macro
> '_compiletime_assert'
>      397 |         _compiletime_assert(condition, msg,
> __compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro
> 'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg)
> compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:50:9: note: in expansion of macro
> 'BUILD_BUG_ON_MSG'
>       50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed:
> " #condition)
>          |         ^~~~~~~~~~~~~~~~
>    drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c:266:9: note: in
> expansion of macro 'BUILD_BUG_ON'
>      266 |         BUILD_BUG_ON(sizeof(struct crypt_ctl) != 64);
>          |         ^~~~~~~~~~~~
> 
> 

This happened because I added COMPILE_TEST as a dependency and
obviously shouldn't have.

Will send a patch to remove it.

Tom 







[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux