All of lore.kernel.org
 help / color / mirror / Atom feed
* [aaron:for_lkp_skl_2sp2_test 171/225] lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
@ 2018-01-04 10:18 kbuild test robot
  2018-01-04 14:22 ` Lu, Aaron
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2018-01-04 10:18 UTC (permalink / raw)
  To: Andi Kleen
  Cc: kbuild-all, Aaron Lu, Andrew Morton, Linux Memory Management List

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

tree:   aaron/for_lkp_skl_2sp2_test
head:   6c9381b65892222cbe2214fb22af9043f9ce1065
commit: 4479c984e6bbbe022595e30082ba671c8db74332 [171/225] kernel debug: support resetting WARN_ONCE for all architectures
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 4479c984e6bbbe022595e30082ba671c8db74332
        # 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/list.h:8:0,
                    from lib/bug.c:43:
   lib/bug.c: In function 'generic_bug_clear_once':
   lib/bug.c:212:32: error: 'module_bug_list' undeclared (first use in this function); did you mean 'module_sig_ok'?
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
                                   ^
   include/linux/kernel.h:927:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
>> include/linux/rculist.h:277:15: note: in expansion of macro 'lockless_dereference'
     container_of(lockless_dereference(ptr), type, member)
                  ^~~~~~~~~~~~~~~~~~~~
>> include/linux/rculist.h:351:13: note: in expansion of macro 'list_entry_rcu'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
                ^~~~~~~~~~~~~~
>> lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
     ^~~~~~~~~~~~~~~~~~~~~~~
   lib/bug.c:212:32: note: each undeclared identifier is reported only once for each function it appears in
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
                                   ^
   include/linux/kernel.h:927:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
>> include/linux/rculist.h:277:15: note: in expansion of macro 'lockless_dereference'
     container_of(lockless_dereference(ptr), type, member)
                  ^~~~~~~~~~~~~~~~~~~~
>> include/linux/rculist.h:351:13: note: in expansion of macro 'list_entry_rcu'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
                ^~~~~~~~~~~~~~
>> lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
     ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/kernel.h:927:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     void *__mptr = (void *)(ptr);     \
                    ^
>> include/linux/rculist.h:277:2: note: in expansion of macro 'container_of'
     container_of(lockless_dereference(ptr), type, member)
     ^~~~~~~~~~~~
>> include/linux/rculist.h:351:13: note: in expansion of macro 'list_entry_rcu'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
                ^~~~~~~~~~~~~~
>> lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
     ^~~~~~~~~~~~~~~~~~~~~~~
   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 lib/bug.c:43:
>> include/linux/kernel.h:928:32: error: invalid type argument of unary '*' (have 'int')
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                   ^~~~~~
   include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^~~~~~~~~
   include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:928:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:928:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
>> include/linux/rculist.h:277:2: note: in expansion of macro 'container_of'
     container_of(lockless_dereference(ptr), type, member)
     ^~~~~~~~~~~~
>> include/linux/rculist.h:351:13: note: in expansion of macro 'list_entry_rcu'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
                ^~~~~~~~~~~~~~
>> lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
     ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/rculist.h:351:49: error: dereferencing pointer to incomplete type 'struct module'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
   include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^~~~~~~~~
   include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:928:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:928:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
>> include/linux/rculist.h:277:2: note: in expansion of macro 'container_of'
     container_of(lockless_dereference(ptr), type, member)
     ^~~~~~~~~~~~
>> include/linux/rculist.h:351:13: note: in expansion of macro 'list_entry_rcu'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
                ^~~~~~~~~~~~~~
>> lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
     list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
     ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:929:18: error: invalid type argument of unary '*' (have 'int')
        !__same_type(*(ptr), void),   \
                     ^~~~~~
   include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^~~~~~~~~
   include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:928:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:929:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
>> include/linux/rculist.h:277:2: note: in expansion of macro 'container_of'
     container_of(lockless_dereference(ptr), type, member)
     ^~~~~~~~~~~~
>> include/linux/rculist.h:351:13: note: in expansion of macro 'list_entry_rcu'
     for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
                ^~~~~~~~~~~~~~

vim +/list_for_each_entry_rcu +212 lib/bug.c

   206	
   207	void generic_bug_clear_once(void)
   208	{
   209		struct module *mod;
   210	
   211		rcu_read_lock_sched();
 > 212		list_for_each_entry_rcu(mod, &module_bug_list, bug_list)

---
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: 30636 bytes --]

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

* Re: [aaron:for_lkp_skl_2sp2_test 171/225] lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
  2018-01-04 10:18 [aaron:for_lkp_skl_2sp2_test 171/225] lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu' kbuild test robot
@ 2018-01-04 14:22 ` Lu, Aaron
  0 siblings, 0 replies; 2+ messages in thread
From: Lu, Aaron @ 2018-01-04 14:22 UTC (permalink / raw)
  To: Wu, Fengguang, ak; +Cc: kbuild-all, linux-mm, akpm

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 9453 bytes --]

Andi,

Please ignore all messages from my tree, sorry for the noise.

On Thu, 2018-01-04 at 18:18 +0800, kbuild test robot wrote:
> tree:   aaron/for_lkp_skl_2sp2_test
> head:   6c9381b65892222cbe2214fb22af9043f9ce1065
> commit: 4479c984e6bbbe022595e30082ba671c8db74332 [171/225] kernel
> debug: support resetting WARN_ONCE for all architectures
> config: x86_64-acpi-redef (attached as .config)
> compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
> reproduce:
>         git checkout 4479c984e6bbbe022595e30082ba671c8db74332
>         # 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/list.h:8:0,
>                     from lib/bug.c:43:
>    lib/bug.c: In function 'generic_bug_clear_once':
>    lib/bug.c:212:32: error: 'module_bug_list' undeclared (first use
> in this function); did you mean 'module_sig_ok'?
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>                                    ^
>    include/linux/kernel.h:927:26: note: in definition of macro
> 'container_of'
>      void *__mptr = (void *)(ptr);     \
>                              ^~~
> > > include/linux/rculist.h:277:15: note: in expansion of macro
> > > 'lockless_dereference'
> 
>      container_of(lockless_dereference(ptr), type, member)
>                   ^~~~~~~~~~~~~~~~~~~~
> > > include/linux/rculist.h:351:13: note: in expansion of macro
> > > 'list_entry_rcu'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>                 ^~~~~~~~~~~~~~
> > > lib/bug.c:212:2: note: in expansion of macro
> > > 'list_for_each_entry_rcu'
> 
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>      ^~~~~~~~~~~~~~~~~~~~~~~
>    lib/bug.c:212:32: note: each undeclared identifier is reported
> only once for each function it appears in
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>                                    ^
>    include/linux/kernel.h:927:26: note: in definition of macro
> 'container_of'
>      void *__mptr = (void *)(ptr);     \
>                              ^~~
> > > include/linux/rculist.h:277:15: note: in expansion of macro
> > > 'lockless_dereference'
> 
>      container_of(lockless_dereference(ptr), type, member)
>                   ^~~~~~~~~~~~~~~~~~~~
> > > include/linux/rculist.h:351:13: note: in expansion of macro
> > > 'list_entry_rcu'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>                 ^~~~~~~~~~~~~~
> > > lib/bug.c:212:2: note: in expansion of macro
> > > 'list_for_each_entry_rcu'
> 
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>      ^~~~~~~~~~~~~~~~~~~~~~~
> > > include/linux/kernel.h:927:17: warning: cast to pointer from
> > > integer of different size [-Wint-to-pointer-cast]
> 
>      void *__mptr = (void *)(ptr);     \
>                     ^
> > > include/linux/rculist.h:277:2: note: in expansion of macro
> > > 'container_of'
> 
>      container_of(lockless_dereference(ptr), type, member)
>      ^~~~~~~~~~~~
> > > include/linux/rculist.h:351:13: note: in expansion of macro
> > > 'list_entry_rcu'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>                 ^~~~~~~~~~~~~~
> > > lib/bug.c:212:2: note: in expansion of macro
> > > 'list_for_each_entry_rcu'
> 
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>      ^~~~~~~~~~~~~~~~~~~~~~~
>    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 lib/bug.c:43:
> > > include/linux/kernel.h:928:32: error: invalid type argument of
> > > unary '*' (have 'int')
> 
>      BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
>                                    ^~~~~~
>    include/linux/compiler.h:553:19: note: in definition of macro
> '__compiletime_assert'
>       bool __cond = !(condition);    \
>                       ^~~~~~~~~
>    include/linux/compiler.h:576:2: note: in expansion of macro
> '_compiletime_assert'
>      _compiletime_assert(condition, msg, __compiletime_assert_,
> __LINE__)
>      ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:46:37: note: in expansion of macro
> 'compiletime_assert'
>     #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond),
> msg)
>                                         ^~~~~~~~~~~~~~~~~~
>    include/linux/kernel.h:928:2: note: in expansion of macro
> 'BUILD_BUG_ON_MSG'
>      BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
>      ^~~~~~~~~~~~~~~~
>    include/linux/kernel.h:928:20: note: in expansion of macro
> '__same_type'
>      BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
>                        ^~~~~~~~~~~
> > > include/linux/rculist.h:277:2: note: in expansion of macro
> > > 'container_of'
> 
>      container_of(lockless_dereference(ptr), type, member)
>      ^~~~~~~~~~~~
> > > include/linux/rculist.h:351:13: note: in expansion of macro
> > > 'list_entry_rcu'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>                 ^~~~~~~~~~~~~~
> > > lib/bug.c:212:2: note: in expansion of macro
> > > 'list_for_each_entry_rcu'
> 
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>      ^~~~~~~~~~~~~~~~~~~~~~~
> > > include/linux/rculist.h:351:49: error: dereferencing pointer to
> > > incomplete type 'struct module'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>    include/linux/compiler.h:553:19: note: in definition of macro
> '__compiletime_assert'
>       bool __cond = !(condition);    \
>                       ^~~~~~~~~
>    include/linux/compiler.h:576:2: note: in expansion of macro
> '_compiletime_assert'
>      _compiletime_assert(condition, msg, __compiletime_assert_,
> __LINE__)
>      ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:46:37: note: in expansion of macro
> 'compiletime_assert'
>     #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond),
> msg)
>                                         ^~~~~~~~~~~~~~~~~~
>    include/linux/kernel.h:928:2: note: in expansion of macro
> 'BUILD_BUG_ON_MSG'
>      BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
>      ^~~~~~~~~~~~~~~~
>    include/linux/kernel.h:928:20: note: in expansion of macro
> '__same_type'
>      BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
>                        ^~~~~~~~~~~
> > > include/linux/rculist.h:277:2: note: in expansion of macro
> > > 'container_of'
> 
>      container_of(lockless_dereference(ptr), type, member)
>      ^~~~~~~~~~~~
> > > include/linux/rculist.h:351:13: note: in expansion of macro
> > > 'list_entry_rcu'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>                 ^~~~~~~~~~~~~~
> > > lib/bug.c:212:2: note: in expansion of macro
> > > 'list_for_each_entry_rcu'
> 
>      list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
>      ^~~~~~~~~~~~~~~~~~~~~~~
>    include/linux/kernel.h:929:18: error: invalid type argument of
> unary '*' (have 'int')
>         !__same_type(*(ptr), void),   \
>                      ^~~~~~
>    include/linux/compiler.h:553:19: note: in definition of macro
> '__compiletime_assert'
>       bool __cond = !(condition);    \
>                       ^~~~~~~~~
>    include/linux/compiler.h:576:2: note: in expansion of macro
> '_compiletime_assert'
>      _compiletime_assert(condition, msg, __compiletime_assert_,
> __LINE__)
>      ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:46:37: note: in expansion of macro
> 'compiletime_assert'
>     #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond),
> msg)
>                                         ^~~~~~~~~~~~~~~~~~
>    include/linux/kernel.h:928:2: note: in expansion of macro
> 'BUILD_BUG_ON_MSG'
>      BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
>      ^~~~~~~~~~~~~~~~
>    include/linux/kernel.h:929:6: note: in expansion of macro
> '__same_type'
>         !__same_type(*(ptr), void),   \
>          ^~~~~~~~~~~
> > > include/linux/rculist.h:277:2: note: in expansion of macro
> > > 'container_of'
> 
>      container_of(lockless_dereference(ptr), type, member)
>      ^~~~~~~~~~~~
> > > include/linux/rculist.h:351:13: note: in expansion of macro
> > > 'list_entry_rcu'
> 
>      for (pos = list_entry_rcu((head)->next, typeof(*pos), member); \
>                 ^~~~~~~~~~~~~~
> 
> vim +/list_for_each_entry_rcu +212 lib/bug.c
> 
>    206	
>    207	void generic_bug_clear_once(void)
>    208	{
>    209		struct module *mod;
>    210	
>    211		rcu_read_lock_sched();
>  > 212		list_for_each_entry_rcu(mod, &module_bug_list,
> bug_list)
> 
> ---
> 0-DAY kernel test infrastructure                Open Source
> Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel
> CorporationN‹§²æìr¸›zǧu©ž²Æ {\b­†éì¹»\x1c®&Þ–)îÆi¢žØ^n‡r¶‰šŽŠÝ¢j$½§$¢¸\x05¢¹¨­è§~Š'.)îÄÃ,yèm¶ŸÿÃ\f%Š{±šj+ƒðèž×¦j)Z†·Ÿ

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

end of thread, other threads:[~2018-01-04 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-04 10:18 [aaron:for_lkp_skl_2sp2_test 171/225] lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu' kbuild test robot
2018-01-04 14:22 ` Lu, Aaron

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.