All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:pending-5.4 30/42] include/linux/compiler.h:417:45: error: call to '__compiletime_assert_259' declared with attribute error: BUILD_BUG failed
@ 2021-08-16  6:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-16  6:10 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.4
head:   b98b3164c31115159bca6e3c71c0c98426868ca9
commit: cc784e813e05f1a5773275d71469dab8ea13c08f [30/42] net: igmp: fix data-race in igmp_ifc_timer_expire()
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.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/sashal/linux-stable.git/commit/?id=cc784e813e05f1a5773275d71469dab8ea13c08f
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable pending-5.4
        git checkout cc784e813e05f1a5773275d71469dab8ea13c08f
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash net/ipv4/

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

Note: the sashal-linux-stable/pending-5.4 HEAD b98b3164c31115159bca6e3c71c0c98426868ca9 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:11,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from net/ipv4/igmp.c:69:
   net/ipv4/igmp.c: In function 'igmp_ifc_timer_expire':
>> include/linux/compiler.h:417:45: error: call to '__compiletime_assert_259' declared with attribute error: BUILD_BUG failed
     417 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                             ^
   include/linux/compiler.h:398:25: note: in definition of macro '__compiletime_assert'
     398 |                         prefix ## suffix();                             \
         |                         ^~~~~~
   include/linux/compiler.h:417:9: note: in expansion of macro '_compiletime_assert'
     417 |         _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:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
         |                     ^~~~~~~~~~~~~~~~
   arch/riscv/include/asm/cmpxchg.h:335:17: note: in expansion of macro 'BUILD_BUG'
     335 |                 BUILD_BUG();                                            \
         |                 ^~~~~~~~~
   arch/riscv/include/asm/cmpxchg.h:344:30: note: in expansion of macro '__cmpxchg'
     344 |         (__typeof__(*(ptr))) __cmpxchg((ptr),                           \
         |                              ^~~~~~~~~
   net/ipv4/igmp.c:815:21: note: in expansion of macro 'cmpxchg'
     815 |                 if (cmpxchg(&in_dev->mr_ifc_count,
         |                     ^~~~~~~


vim +/__compiletime_assert_259 +417 include/linux/compiler.h

9a8ab1c39970a4 Daniel Santos 2013-02-21  403  
9a8ab1c39970a4 Daniel Santos 2013-02-21  404  #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21  405  	__compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21  406  
9a8ab1c39970a4 Daniel Santos 2013-02-21  407  /**
9a8ab1c39970a4 Daniel Santos 2013-02-21  408   * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21  409   * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21  410   * @msg:       a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21  411   *
9a8ab1c39970a4 Daniel Santos 2013-02-21  412   * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21  413   * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21  414   * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21  415   */
9a8ab1c39970a4 Daniel Santos 2013-02-21  416  #define compiletime_assert(condition, msg) \
3910babeac1ab0 Vegard Nossum 2020-04-06 @417  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
9a8ab1c39970a4 Daniel Santos 2013-02-21  418  

:::::: The code at line 417 was first introduced by commit
:::::: 3910babeac1ab031f4e178042cbd1af9a9a0ec51 compiler.h: fix error in BUILD_BUG_ON() reporting

:::::: TO: Vegard Nossum <vegard.nossum@oracle.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.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: 60736 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-16  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16  6:10 [sashal-linux-stable:pending-5.4 30/42] include/linux/compiler.h:417:45: error: call to '__compiletime_assert_259' declared with attribute error: BUILD_BUG failed kernel test robot

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.