linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Lu, Aaron" <aaron.lu@intel.com>
To: "Wu, Fengguang" <fengguang.wu@intel.com>,
	"ak@linux.intel.com" <ak@linux.intel.com>
Cc: "kbuild-all@01.org" <kbuild-all@01.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>
Subject: Re: [aaron:for_lkp_skl_2sp2_test 171/225] lib/bug.c:212:2: note: in expansion of macro 'list_for_each_entry_rcu'
Date: Thu, 4 Jan 2018 14:22:37 +0000	[thread overview]
Message-ID: <1515075757.1948.0.camel@intel.com> (raw)
In-Reply-To: <201801041819.pjUpimbz%fengguang.wu@intel.com>

[-- 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†·Ÿ

      reply	other threads:[~2018-01-04 14:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1515075757.1948.0.camel@intel.com \
    --to=aaron.lu@intel.com \
    --cc=ak@linux.intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).