linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
@ 2021-03-15 21:43 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-15 21:43 UTC (permalink / raw)
  To: Will Deacon; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 23421 bytes --]

Hi Will,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1e28eed17697bcf343c6743f0028cc3b5dd88bf0
commit: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
date:   8 months ago
config: arm-randconfig-r036-20210316 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/torvalds/linux.git/commit/?id=eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from <command-line>:
   drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_module_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7825:2: note: in expansion of macro 'BUILD_BUG_ON'
    7825 |  BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_519' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7826:2: note: in expansion of macro 'BUILD_BUG_ON'
    7826 |  BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_523' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7830:2: note: in expansion of macro 'BUILD_BUG_ON'
    7830 |  BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_524' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7831:2: note: in expansion of macro 'BUILD_BUG_ON'
    7831 |  BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_525' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7832:2: note: in expansion of macro 'BUILD_BUG_ON'
    7832 |  BUILD_BUG_ON(sizeof(request_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7851:2: note: in expansion of macro 'BUILD_BUG_ON'
    7851 |  BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_547' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7854:2: note: in expansion of macro 'BUILD_BUG_ON'
    7854 |  BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_553' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7860:2: note: in expansion of macro 'BUILD_BUG_ON'
    7860 |  BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_557' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7864:2: note: in expansion of macro 'BUILD_BUG_ON'
    7864 |  BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_563' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7870:2: note: in expansion of macro 'BUILD_BUG_ON'
    7870 |  BUILD_BUG_ON(sizeof(struct pt_ls4_rx_unsol) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_565' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct qla2100_fw_dump) != 123634
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7872:2: note: in expansion of macro 'BUILD_BUG_ON'
    7872 |  BUILD_BUG_ON(sizeof(struct qla2100_fw_dump) != 123634);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_587' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct sts_entry_24xx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7894:2: note: in expansion of macro 'BUILD_BUG_ON'
    7894 |  BUILD_BUG_ON(sizeof(struct sts_entry_24xx) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_601' declared with attribute error: BUILD_BUG_ON failed: sizeof(target_id_t) != 2
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7908:2: note: in expansion of macro 'BUILD_BUG_ON'
    7908 |  BUILD_BUG_ON(sizeof(target_id_t) != 2);
         |  ^~~~~~~~~~~~
--
   In file included from <command-line>:
   drivers/scsi/qla2xxx/qla_target.c: In function 'qlt_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_387' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio7_to_24xx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_target.c:7297:2: note: in expansion of macro 'BUILD_BUG_ON'
    7297 |  BUILD_BUG_ON(sizeof(struct ctio7_to_24xx) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_388' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_to_2xxx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_target.c:7298:2: note: in expansion of macro 'BUILD_BUG_ON'
    7298 |  BUILD_BUG_ON(sizeof(struct ctio_to_2xxx) != 64);
         |  ^~~~~~~~~~~~
--
   In file included from <command-line>:
   net/smc/smc_llc.c: In function 'smc_llc_add_pending_send':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_599' declared with attribute error: must increase SMC_WR_BUF_SIZE to at least sizeof(struct smc_llc_msg)
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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)
         |                                     ^~~~~~~~~~~~~~~~~~
   net/smc/smc_llc.c:348:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     348 |  BUILD_BUG_ON_MSG(
         |  ^~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_600' declared with attribute error: must adapt SMC_WR_TX_SIZE to sizeof(struct smc_llc_msg); if not all smc_wr upper layer protocols use the same message size any more, must start to set link->wr_tx_sges[i].length on each individual smc_wr_tx_send()
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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)
         |                                     ^~~~~~~~~~~~~~~~~~
   net/smc/smc_llc.c:351:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     351 |  BUILD_BUG_ON_MSG(
         |  ^~~~~~~~~~~~~~~~
..


vim +/__compiletime_assert_518 +338 include/linux/compiler_types.h

   324	
   325	#define _compiletime_assert(condition, msg, prefix, suffix) \
   326		__compiletime_assert(condition, msg, prefix, suffix)
   327	
   328	/**
   329	 * compiletime_assert - break build and emit msg if condition is false
   330	 * @condition: a compile-time constant condition to check
   331	 * @msg:       a message to emit if condition is false
   332	 *
   333	 * In tradition of POSIX assert, this macro will break the build if the
   334	 * supplied condition is *false*, emitting the supplied error message if the
   335	 * compiler has support to do so.
   336	 */
   337	#define compiletime_assert(condition, msg) \
 > 338		_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
   339	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34957 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
@ 2021-06-27  3:36 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-27  3:36 UTC (permalink / raw)
  To: Will Deacon; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 31291 bytes --]

Hi Will,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   625acffd7ae2c52898d249e6c5c39f348db0d8df
commit: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
date:   11 months ago
config: arm-randconfig-c023-20210626 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/torvalds/linux.git/commit/?id=eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from <command-line>:
   drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_module_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7825:2: note: in expansion of macro 'BUILD_BUG_ON'
    7825 |  BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_519' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7826:2: note: in expansion of macro 'BUILD_BUG_ON'
    7826 |  BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_523' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7830:2: note: in expansion of macro 'BUILD_BUG_ON'
    7830 |  BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_524' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7831:2: note: in expansion of macro 'BUILD_BUG_ON'
    7831 |  BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_525' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7832:2: note: in expansion of macro 'BUILD_BUG_ON'
    7832 |  BUILD_BUG_ON(sizeof(request_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7851:2: note: in expansion of macro 'BUILD_BUG_ON'
    7851 |  BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_547' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7854:2: note: in expansion of macro 'BUILD_BUG_ON'
    7854 |  BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_553' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7860:2: note: in expansion of macro 'BUILD_BUG_ON'
    7860 |  BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_557' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7864:2: note: in expansion of macro 'BUILD_BUG_ON'
    7864 |  BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_563' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7870:2: note: in expansion of macro 'BUILD_BUG_ON'
    7870 |  BUILD_BUG_ON(sizeof(struct pt_ls4_rx_unsol) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_565' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct qla2100_fw_dump) != 123634
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7872:2: note: in expansion of macro 'BUILD_BUG_ON'
    7872 |  BUILD_BUG_ON(sizeof(struct qla2100_fw_dump) != 123634);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_587' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct sts_entry_24xx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7894:2: note: in expansion of macro 'BUILD_BUG_ON'
    7894 |  BUILD_BUG_ON(sizeof(struct sts_entry_24xx) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_601' declared with attribute error: BUILD_BUG_ON failed: sizeof(target_id_t) != 2
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_os.c:7908:2: note: in expansion of macro 'BUILD_BUG_ON'
    7908 |  BUILD_BUG_ON(sizeof(target_id_t) != 2);
         |  ^~~~~~~~~~~~
--
   In file included from <command-line>:
   drivers/scsi/qla2xxx/qla_target.c: In function 'qlt_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_387' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio7_to_24xx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_target.c:7297:2: note: in expansion of macro 'BUILD_BUG_ON'
    7297 |  BUILD_BUG_ON(sizeof(struct ctio7_to_24xx) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_388' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_to_2xxx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/qla_target.c:7298:2: note: in expansion of macro 'BUILD_BUG_ON'
    7298 |  BUILD_BUG_ON(sizeof(struct ctio_to_2xxx) != 64);
         |  ^~~~~~~~~~~~
--
   In file included from <command-line>:
   drivers/scsi/qla2xxx/tcm_qla2xxx.c: In function 'tcm_qla2xxx_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_388' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abts_recv_from_24xx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1963:2: note: in expansion of macro 'BUILD_BUG_ON'
    1963 |  BUILD_BUG_ON(sizeof(struct abts_recv_from_24xx) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_389' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abts_resp_from_24xx_fw) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1964:2: note: in expansion of macro 'BUILD_BUG_ON'
    1964 |  BUILD_BUG_ON(sizeof(struct abts_resp_from_24xx_fw) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_391' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct atio_from_isp) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1966:2: note: in expansion of macro 'BUILD_BUG_ON'
    1966 |  BUILD_BUG_ON(sizeof(struct atio_from_isp) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_395' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio7_to_24xx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1970:2: note: in expansion of macro 'BUILD_BUG_ON'
    1970 |  BUILD_BUG_ON(sizeof(struct ctio7_to_24xx) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_396' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1971:2: note: in expansion of macro 'BUILD_BUG_ON'
    1971 |  BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_398' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_to_2xxx) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1973:2: note: in expansion of macro 'BUILD_BUG_ON'
    1973 |  BUILD_BUG_ON(sizeof(struct ctio_to_2xxx) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_399' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct fcp_hdr_le) != 24
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1974:2: note: in expansion of macro 'BUILD_BUG_ON'
    1974 |  BUILD_BUG_ON(sizeof(struct fcp_hdr_le) != 24);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_400' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct nack_to_isp) != 64
     338 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
     319 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
     338 |  _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:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   drivers/scsi/qla2xxx/tcm_qla2xxx.c:1975:2: note: in expansion of macro 'BUILD_BUG_ON'
    1975 |  BUILD_BUG_ON(sizeof(struct nack_to_isp) != 64);
         |  ^~~~~~~~~~~~


vim +/__compiletime_assert_518 +338 include/linux/compiler_types.h

   324	
   325	#define _compiletime_assert(condition, msg, prefix, suffix) \
   326		__compiletime_assert(condition, msg, prefix, suffix)
   327	
   328	/**
   329	 * compiletime_assert - break build and emit msg if condition is false
   330	 * @condition: a compile-time constant condition to check
   331	 * @msg:       a message to emit if condition is false
   332	 *
   333	 * In tradition of POSIX assert, this macro will break the build if the
   334	 * supplied condition is *false*, emitting the supplied error message if the
   335	 * compiler has support to do so.
   336	 */
   337	#define compiletime_assert(condition, msg) \
 > 338		_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
   339	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32918 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-27  3:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 21:43 include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64 kernel test robot
2021-06-27  3:36 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).