[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201509020744.JUqgE91v%fengguang.wu@intel.com>
Date: Wed, 2 Sep 2015 07:19:48 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Tom Herbert <tom@...bertland.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1560/1566] include/linux/compiler.h:447:38: error:
call to '__compiletime_assert_459' declared with attribute error:
BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 41ecc3d390266acc1aa911d2ec477928a5248f75
commit: 807e165dc44fd93f9d378f861f0540a158d7343a [1560/1566] flow_dissector: Add control/reporting of fragmentation
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 807e165dc44fd93f9d378f861f0540a158d7343a
# save the attached .config to linux build tree
make.cross ARCH=m68k
All error/warnings (new ones prefixed by >>):
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from net/core/flow_dissector.c:1:
In function 'flow_keys_hash_start',
inlined from 'flow_hash_from_keys' at net/core/flow_dissector.c:553:34:
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
_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)
^
net/core/flow_dissector.c:459:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(FLOW_KEYS_HASH_OFFSET % sizeof(u32));
^
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
_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)
^
net/core/flow_dissector.c:459:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(FLOW_KEYS_HASH_OFFSET % sizeof(u32));
^
In function 'flow_keys_hash_start',
inlined from '__skb_get_hash' at net/core/flow_dissector.c:553:34:
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
_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)
^
net/core/flow_dissector.c:459:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(FLOW_KEYS_HASH_OFFSET % sizeof(u32));
^
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
_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)
^
net/core/flow_dissector.c:459:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(FLOW_KEYS_HASH_OFFSET % sizeof(u32));
^
In function 'flow_keys_hash_start',
inlined from 'skb_get_hash_perturb' at net/core/flow_dissector.c:553:34:
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
_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)
^
net/core/flow_dissector.c:459:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(FLOW_KEYS_HASH_OFFSET % sizeof(u32));
^
>> include/linux/compiler.h:447:38: error: call to '__compiletime_assert_459' declared with attribute error: BUILD_BUG_ON failed: FLOW_KEYS_HASH_OFFSET % sizeof(u32)
_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)
^
net/core/flow_dissector.c:459:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(FLOW_KEYS_HASH_OFFSET % sizeof(u32));
^
vim +/__compiletime_assert_459 +447 include/linux/compiler.h
9a8ab1c3 Daniel Santos 2013-02-21 431 __compiletime_error_fallback(__cond); \
9a8ab1c3 Daniel Santos 2013-02-21 432 } while (0)
9a8ab1c3 Daniel Santos 2013-02-21 433
9a8ab1c3 Daniel Santos 2013-02-21 434 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c3 Daniel Santos 2013-02-21 435 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c3 Daniel Santos 2013-02-21 436
9a8ab1c3 Daniel Santos 2013-02-21 437 /**
9a8ab1c3 Daniel Santos 2013-02-21 438 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c3 Daniel Santos 2013-02-21 439 * @condition: a compile-time constant condition to check
9a8ab1c3 Daniel Santos 2013-02-21 440 * @msg: a message to emit if condition is false
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), \
47933ad4 Peter Zijlstra 2013-11-06 451 "Need native word sized stores/loads for atomicity.")
47933ad4 Peter Zijlstra 2013-11-06 452
9c3cdc1f Linus Torvalds 2008-05-10 453 /*
9c3cdc1f Linus Torvalds 2008-05-10 454 * Prevent the compiler from merging or refetching accesses. The compiler
9c3cdc1f Linus Torvalds 2008-05-10 455 * is also forbidden from reordering successive instances of ACCESS_ONCE(),
:::::: 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" (43155 bytes)
Powered by blists - more mailing lists