[Intel-wired-lan] [jkirsher-next-queue:100GbE 3/16] include/linux/compiler.h:506:38: error: call to '__compiletime_assert_417' declared with attribute error: BUILD_BUG_ON failed: idx != FM10K_REGS_LEN_VSI

kbuild test robot fengguang.wu at intel.com
Tue Apr 5 16:50:29 UTC 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git 100GbE
head:   fe9077c453b3736b3ccf4489752e6789c8dc7d9f
commit: 7bf2c35fea0431315e7a04aaae92ffabc4ea2a56 [3/16] fm10k: Avoid crashing the kernel
config: x86_64-randconfig-n0-04052340 (attached as .config)
reproduce:
        git checkout 7bf2c35fea0431315e7a04aaae92ffabc4ea2a56
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:4:0,
                    from include/linux/preempt.h:9,
                    from include/linux/spinlock.h:50,
                    from include/linux/vmalloc.h:4,
                    from drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c:21:
   drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c: In function 'fm10k_get_reg_vsi':
>> include/linux/compiler.h:506:38: error: call to '__compiletime_assert_417' declared with attribute error: BUILD_BUG_ON failed: idx != FM10K_REGS_LEN_VSI
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:489:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^
   include/linux/compiler.h:506:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^
   include/linux/bug.h:51:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^
   include/linux/bug.h:75:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^
>> drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c:417:2: note: in expansion of macro 'BUILD_BUG_ON'
     BUILD_BUG_ON(idx != FM10K_REGS_LEN_VSI);
     ^

vim +/__compiletime_assert_417 +506 include/linux/compiler.h

9a8ab1c3 Daniel Santos  2013-02-21  500   *
9a8ab1c3 Daniel Santos  2013-02-21  501   * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c3 Daniel Santos  2013-02-21  502   * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c3 Daniel Santos  2013-02-21  503   * compiler has support to do so.
9a8ab1c3 Daniel Santos  2013-02-21  504   */
9a8ab1c3 Daniel Santos  2013-02-21  505  #define compiletime_assert(condition, msg) \
9a8ab1c3 Daniel Santos  2013-02-21 @506  	_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c3 Daniel Santos  2013-02-21  507  
47933ad4 Peter Zijlstra 2013-11-06  508  #define compiletime_assert_atomic_type(t)				\
47933ad4 Peter Zijlstra 2013-11-06  509  	compiletime_assert(__native_word(t),				\

:::::: The code at line 506 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG

:::::: TO: Daniel Santos <daniel.santos at pobox.com>
:::::: CC: Linus Torvalds <torvalds at linux-foundation.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 34668 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160406/82b0e8de/attachment-0001.obj>


More information about the Intel-wired-lan mailing list