All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
Date: Tue, 20 Apr 2021 04:41:24 +0800	[thread overview]
Message-ID: <202104200417.AJrC70Kp-lkp@intel.com> (raw)

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

Hi Bikash,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bf05bf16c76bb44ab5156223e1e58e26dfe30a88
commit: a04658594399e1fa25f984601b77ee840e6aaf01 scsi: qla2xxx: Wait for ABTS response on I/O timeouts for NVMe
date:   3 months ago
config: arm-randconfig-p002-20210419 (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=a04658594399e1fa25f984601b77ee840e6aaf01
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a04658594399e1fa25f984601b77ee840e6aaf01
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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:326:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7782:2: note: in expansion of macro 'BUILD_BUG_ON'
    7782 |  BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_537' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7783:2: note: in expansion of macro 'BUILD_BUG_ON'
    7783 |  BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_541' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7787:2: note: in expansion of macro 'BUILD_BUG_ON'
    7787 |  BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_542' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7788:2: note: in expansion of macro 'BUILD_BUG_ON'
    7788 |  BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_543' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7789:2: note: in expansion of macro 'BUILD_BUG_ON'
    7789 |  BUILD_BUG_ON(sizeof(request_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7790:2: note: in expansion of macro 'BUILD_BUG_ON'
    7790 |  BUILD_BUG_ON(sizeof(struct abort_entry_24xx) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_562' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7808:2: note: in expansion of macro 'BUILD_BUG_ON'
    7808 |  BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_565' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7811:2: note: in expansion of macro 'BUILD_BUG_ON'
    7811 |  BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_571' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7817:2: note: in expansion of macro 'BUILD_BUG_ON'
    7817 |  BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_575' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7821:2: note: in expansion of macro 'BUILD_BUG_ON'
    7821 |  BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_581' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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)


vim +/__compiletime_assert_544 +326 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21  312  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  313  #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21  314  	__compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  315  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  316  /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21  317   * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  318   * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21  319   * @msg:       a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  320   *
eb5c2d4b45e3d2 Will Deacon 2020-07-21  321   * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  322   * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  323   * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21  324   */
eb5c2d4b45e3d2 Will Deacon 2020-07-21  325  #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @326  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  327  

:::::: The code at line 326 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h

:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Will Deacon <will@kernel.org>

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Bikash Hazarika <bhazarika@marvell.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Himanshu Madhani <himanshu.madhani@oracle.com>,
	Saurav Kashyap <skashyap@marvell.com>,
	Arun Easi <aeasi@marvell.com>,
	Nilesh Javali <njavali@marvell.com>
Subject: include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
Date: Tue, 20 Apr 2021 04:41:24 +0800	[thread overview]
Message-ID: <202104200417.AJrC70Kp-lkp@intel.com> (raw)

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

Hi Bikash,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bf05bf16c76bb44ab5156223e1e58e26dfe30a88
commit: a04658594399e1fa25f984601b77ee840e6aaf01 scsi: qla2xxx: Wait for ABTS response on I/O timeouts for NVMe
date:   3 months ago
config: arm-randconfig-p002-20210419 (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=a04658594399e1fa25f984601b77ee840e6aaf01
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a04658594399e1fa25f984601b77ee840e6aaf01
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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:326:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7782:2: note: in expansion of macro 'BUILD_BUG_ON'
    7782 |  BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_537' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7783:2: note: in expansion of macro 'BUILD_BUG_ON'
    7783 |  BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_541' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7787:2: note: in expansion of macro 'BUILD_BUG_ON'
    7787 |  BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_542' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7788:2: note: in expansion of macro 'BUILD_BUG_ON'
    7788 |  BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_543' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7789:2: note: in expansion of macro 'BUILD_BUG_ON'
    7789 |  BUILD_BUG_ON(sizeof(request_t) != 64);
         |  ^~~~~~~~~~~~
>> include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7790:2: note: in expansion of macro 'BUILD_BUG_ON'
    7790 |  BUILD_BUG_ON(sizeof(struct abort_entry_24xx) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_562' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7808:2: note: in expansion of macro 'BUILD_BUG_ON'
    7808 |  BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_565' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7811:2: note: in expansion of macro 'BUILD_BUG_ON'
    7811 |  BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_571' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7817:2: note: in expansion of macro 'BUILD_BUG_ON'
    7817 |  BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_575' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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:7821:2: note: in expansion of macro 'BUILD_BUG_ON'
    7821 |  BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
         |  ^~~~~~~~~~~~
   include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_581' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
     326 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
     307 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
     326 |  _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)


vim +/__compiletime_assert_544 +326 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21  312  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  313  #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21  314  	__compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  315  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  316  /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21  317   * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  318   * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21  319   * @msg:       a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  320   *
eb5c2d4b45e3d2 Will Deacon 2020-07-21  321   * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  322   * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  323   * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21  324   */
eb5c2d4b45e3d2 Will Deacon 2020-07-21  325  #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @326  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  327  

:::::: The code at line 326 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h

:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Will Deacon <will@kernel.org>

---
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: 38832 bytes --]

             reply	other threads:[~2021-04-19 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-19 20:41 kernel test robot [this message]
2021-04-19 20:41 ` include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104200417.AJrC70Kp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.