[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201508211329.x7P0JrxH%fengguang.wu@intel.com>
Date: Fri, 21 Aug 2015 13:55:31 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Jiri Benc <jbenc@...hat.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1179/1189] include/linux/compiler.h:447:38: error:
call to '__compiletime_assert_243' declared with attribute error:
BUILD_BUG_ON failed: offsetof(struct dst_entry, __refcnt) & 63
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: a9e01ed986aa80d3092134428f453072752da223
commit: 61adedf3e3f1d3f032c5a6a299978d91eff6d555 [1179/1189] route: move lwtunnel state to dst_entry
config: m68k-sun3_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 61adedf3e3f1d3f032c5a6a299978d91eff6d555
# save the attached .config to linux build tree
make.cross ARCH=m68k
All error/warnings (new ones prefixed by >>):
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from net/netfilter/nf_nat_core.c:11:
In function 'dst_hold',
inlined from 'nf_xfrm_me_harder' at net/netfilter/nf_nat_core.c:100:2:
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_243' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct dst_entry, __refcnt) & 63
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:430:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^
include/linux/compiler.h:447:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
>> include/net/dst.h:243:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63);
^
vim +/__compiletime_assert_243 +447 include/linux/compiler.h
9a8ab1c3 Daniel Santos 2013-02-21 441 *
9a8ab1c3 Daniel Santos 2013-02-21 442 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c3 Daniel Santos 2013-02-21 443 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c3 Daniel Santos 2013-02-21 444 * compiler has support to do so.
9a8ab1c3 Daniel Santos 2013-02-21 445 */
9a8ab1c3 Daniel Santos 2013-02-21 446 #define compiletime_assert(condition, msg) \
9a8ab1c3 Daniel Santos 2013-02-21 @447 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c3 Daniel Santos 2013-02-21 448
47933ad4 Peter Zijlstra 2013-11-06 449 #define compiletime_assert_atomic_type(t) \
47933ad4 Peter Zijlstra 2013-11-06 450 compiletime_assert(__native_word(t), \
:::::: The code at line 447 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG
:::::: TO: Daniel Santos <daniel.santos@...ox.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
View attachment ".config" of type "text/plain" (43063 bytes)
Powered by blists - more mailing lists