Hi,
[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on v4.7-rc3 next-20160617]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system]
url:
https://github.com/0day-ci/linux/commits/Jakub-Kicinski/register-field-manipulation-macros/20160614-195149
base:
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git
master
config: x86_64-randconfig-s4-06190511 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:4:0,
from arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/bitfield.h:19,
from drivers/net/wireless/mediatek/mt7601u/mt7601u.h:18,
from drivers/net/wireless/mediatek/mt7601u/init.c:16:
In function 'mt7601u_init_usb_dma',
inlined from 'mt7601u_init_hardware' at
drivers/net/wireless/mediatek/mt7601u/init.c:359:2:
>> include/linux/compiler.h:510:38: error: call to '__compiletime_assert_111'
>> declared with attribute error: BUILD_BUG_ON failed:
>> __builtin_constant_p(0x80) ? ~(~0UL) << (0)) & (~0UL >> (64 - 1 -
>> (7) >> _bf_shf~0UL) << (0)) & (~0UL >> (64 - 1 - (7)) & (0x80) : >> 0
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:493:4: note: in definition of macro
'__compiletime_assert'
prefix ## suffix();\
^~
include/linux/compiler.h:510: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)
^~~~
>> include/linux/bitfield.h:28:3: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(!(_mask) || (hi && !is_power_of_2_u64(hi))); \
^~~~
>> include/linux/bitfield.h:36:3: note: in expansion of macro '_BF_FIELD_CHECK'
_BF_FIELD_CHECK(_mask, _val); \
^~~
>> drivers/net/wireless/mediatek/mt7601u/mt7601u.h:285:18: note: in expansion
>> of macro 'FIELD_PUT'
#define MT76_SET FIELD_PUT
^
>> drivers/net/wireless/mediatek/mt7601u/init.c:111:8: note: in expansion of
>> macro 'MT76_SET'
val = MT76_SET(MT_USB_DMA_CFG_RX_BULK_AGG_TOUT, MT_USB_AGGR_TIMEOUT) |
^~~~
include/linux/compiler.h:510:38: error: call to '__compiletime_assert_112'
declared with attribute error: BUILD_BUG_ON failed: __builtin_constant_p(28) ?
~(~0UL) << (8)) & (~0UL >> (64 - 1 - (15) >> _bf_shf~0UL) << (8)) &
(~0UL >> (64 - 1 - (15)) & (28) : 0
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:493:4: note: in definition of macro
'__compiletime_assert'
prefix ## suffix();\
^~
include/linux/compiler.h:510: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)
^~~~
>> include/linux/bitfield.h:28:3: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(!(_mask) || (hi && !is_power_of_2_u64(hi))); \
^~~~
>> include/linux/bitfield.h:36:3: note: in expansion of macro '_BF_FIELD_CHECK'
_BF_FIELD_CHECK(_mask, _val); \
^~~
>> drivers/net/wireless/mediatek/mt7601u/mt7601u.h:285:18: note: in expansion
>> of macro 'FIELD_PUT'
#define MT76_SET FIELD_PUT
^
drivers/net/wireless/mediatek/mt7601u/init.c:112:8: note: in expansion of
macro 'MT76_SET'
MT76_SET(MT_USB_DMA_CFG_RX_BULK_AGG_LMT, MT_USB_AGGR_SIZE_LIMIT) |
^~~~
drivers/net/wireless/mediatek/mt7601u/init.c: In function
'mt7601u_init_hardware':
include/linux/compiler.h:510:38: error: call to '__compiletime_assert_399'
declared with attribute error: BUILD_BUG_ON failed: __builtin_constant_p(0x3f)
? ~(~0UL) << (0)) & (~0UL >> (64 - 1 -