All of lore.kernel.org
 help / color / mirror / Atom feed
* [rdma:k.o/for-4.11 15/22] include/linux/compiler.h:518:38: error: call to '__compiletime_assert_126' declared with attribute error: BUILD_BUG_ON failed: !is_power_of_2(RXE_BUF_PER_MAP)
@ 2017-01-12  8:50 kbuild test robot
       [not found] ` <201701121638.6esoHrp2%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-01-12  8:50 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: kbuild-all-JC7UmRfGjtg, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	Doug Ledford, Leon Romanovsky, Andrew Boyer

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git k.o/for-4.11
head:   c5540a0195ec65e2ab9fcc4bde958db2cc66550c
commit: 43553b47c3124e7f4a9f115cff9db513b35a5e0a [15/22] IB/rxe: Issue warnings once
config: i386-randconfig-c0-01121610 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 43553b47c3124e7f4a9f115cff9db513b35a5e0a
        # save the attached .config to linux build tree
        make ARCH=i386 

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 drivers/infiniband/sw/rxe/rxe.h:42,
                    from drivers/infiniband/sw/rxe/rxe_mr.c:34:
   drivers/infiniband/sw/rxe/rxe_mr.c: In function 'rxe_mem_alloc.isra.3':
>> include/linux/compiler.h:518:38: error: call to '__compiletime_assert_126' declared with attribute error: BUILD_BUG_ON failed: !is_power_of_2(RXE_BUF_PER_MAP)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:501:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^
   include/linux/compiler.h:518:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^
   include/linux/bug.h:54:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^
   include/linux/bug.h:78:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^
>> drivers/infiniband/sw/rxe/rxe_mr.c:126:2: note: in expansion of macro 'BUILD_BUG_ON'
     BUILD_BUG_ON(!is_power_of_2(RXE_BUF_PER_MAP));
     ^

vim +/__compiletime_assert_126 +518 include/linux/compiler.h

9a8ab1c3 Daniel Santos  2013-02-21  512   *
9a8ab1c3 Daniel Santos  2013-02-21  513   * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c3 Daniel Santos  2013-02-21  514   * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c3 Daniel Santos  2013-02-21  515   * compiler has support to do so.
9a8ab1c3 Daniel Santos  2013-02-21  516   */
9a8ab1c3 Daniel Santos  2013-02-21  517  #define compiletime_assert(condition, msg) \
9a8ab1c3 Daniel Santos  2013-02-21 @518  	_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c3 Daniel Santos  2013-02-21  519  
47933ad4 Peter Zijlstra 2013-11-06  520  #define compiletime_assert_atomic_type(t)				\
47933ad4 Peter Zijlstra 2013-11-06  521  	compiletime_assert(__native_word(t),				\

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

:::::: TO: Daniel Santos <daniel.santos-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
:::::: CC: Linus Torvalds <torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29183 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [rdma:k.o/for-4.11 15/22] include/linux/compiler.h:518:38: error: call to '__compiletime_assert_126' declared with attribute error: BUILD_BUG_ON failed: !is_power_of_2(RXE_BUF_PER_MAP)
       [not found] ` <201701121638.6esoHrp2%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2017-01-12 17:00   ` Bart Van Assche
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Van Assche @ 2017-01-12 17:00 UTC (permalink / raw)
  To: fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
  Cc: kbuild-all-JC7UmRfGjtg@public.gmane.org,
	andrew.boyer-8PEkshWhKlo@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
	dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

On Thu, 2017-01-12 at 16:50 +0800, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git k.o/for-4.11
> head:   c5540a0195ec65e2ab9fcc4bde958db2cc66550c
> commit: 43553b47c3124e7f4a9f115cff9db513b35a5e0a [15/22] IB/rxe: Issue warnings once
> config: i386-randconfig-c0-01121610 (attached as .config)
> compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
> reproduce:
>         git checkout 43553b47c3124e7f4a9f115cff9db513b35a5e0a
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> 
> 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 drivers/infiniband/sw/rxe/rxe.h:42,
>                     from drivers/infiniband/sw/rxe/rxe_mr.c:34:
>    drivers/infiniband/sw/rxe/rxe_mr.c: In function 'rxe_mem_alloc.isra.3':
> > > include/linux/compiler.h:518:38: error: call to '__compiletime_assert_126' declared with attribute error: BUILD_BUG_ON failed: !is_power_of_2(RXE_BUF_PER_MAP)
> 
>      _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
>                                          ^
>    include/linux/compiler.h:501:4: note: in definition of macro '__compiletime_assert'
>        prefix ## suffix();    \
>        ^
>    include/linux/compiler.h:518:2: note: in expansion of macro '_compiletime_assert'
>      _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
>      ^
>    include/linux/bug.h:54:37: note: in expansion of macro 'compiletime_assert'
>     #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
>                                         ^
>    include/linux/bug.h:78:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
>      BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
>      ^
> > > drivers/infiniband/sw/rxe/rxe_mr.c:126:2: note: in expansion of macro 'BUILD_BUG_ON'
> 
>      BUILD_BUG_ON(!is_power_of_2(RXE_BUF_PER_MAP));
>      ^


Hello Wu,

make ARCH=i386 M=drivers/infiniband/sw/rxe succeeds on my development system
with the .config that was attached to your e-mail and with gcc 6.2.1. Do you
think the above indicate a bug in the kbuild test robot infrastructure?

Thanks,

Bart.--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-12 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-12  8:50 [rdma:k.o/for-4.11 15/22] include/linux/compiler.h:518:38: error: call to '__compiletime_assert_126' declared with attribute error: BUILD_BUG_ON failed: !is_power_of_2(RXE_BUF_PER_MAP) kbuild test robot
     [not found] ` <201701121638.6esoHrp2%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-01-12 17:00   ` Bart Van Assche

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.