From: kbuild test robot <fengguang.wu@intel.com>
To: Michal Hocko <mhocko@suse.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [zwisler:mmots_dax_tracepoint 14/143] include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
Date: Fri, 6 Jan 2017 20:24:09 +0800 [thread overview]
Message-ID: <201701062005.a2g4Lq1c%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 19376 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zwisler/linux.git mmots_dax_tracepoint
head: da4c62b5ae469ab971d717cd9a6f7651aabe5ab9
commit: ed24c07ce938fb44d97d5db5d653b5d51c608ec4 [14/143] mm: get rid of __GFP_OTHER_NODE
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout ed24c07ce938fb44d97d5db5d653b5d51c608ec4
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
In file included from include/trace/define_trace.h:95:0,
from include/trace/events/btrfs.h:1469,
from fs/btrfs/super.c:65:
include/trace/events/btrfs.h: In function 'trace_raw_output_alloc_extent_state':
>> include/trace/trace_events.h:274:16: error: expected expression before ',' token
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/btrfs.h:1088:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(alloc_extent_state,
^~~~~~~~~~~
include/trace/events/btrfs.h:1106:2: note: in expansion of macro 'TP_printk'
TP_printk("state=%p; mask = %s; caller = %pS", __entry->state,
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
>> include/trace/events/btrfs.h:1107:5: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->mask), (void *)__entry->ip)
^~~~~~~~~~~~~~
--
In file included from include/trace/define_trace.h:95:0,
from include/trace/events/vmscan.h:398,
from mm/vmscan.c:60:
include/trace/events/vmscan.h: In function 'trace_raw_output_mm_vmscan_direct_reclaim_begin_template':
>> include/trace/trace_events.h:274:16: error: expected expression before ',' token
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
>> include/trace/events/vmscan.h:121:2: note: in expansion of macro 'TP_printk'
TP_printk("order=%d may_writepage=%d gfp_flags=%s classzone_idx=%d",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
>> include/trace/events/vmscan.h:124:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
include/trace/events/vmscan.h: In function 'trace_raw_output_mm_shrink_slab_start':
>> include/trace/trace_events.h:274:16: error: expected expression before ',' token
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/vmscan.h:187:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_shrink_slab_start,
^~~~~~~~~~~
include/trace/events/vmscan.h:222:2: note: in expansion of macro 'TP_printk'
TP_printk("%pF %p: nid: %d objects to shrink %ld gfp_flags %s pgs_scanned %ld lru_pgs %ld cache items %ld delta %lld total_scan %ld",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/vmscan.h:227:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
>> include/trace/trace_events.h:274:16: error: initializer element is not constant
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/vmscan.h:187:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_shrink_slab_start,
^~~~~~~~~~~
include/trace/events/vmscan.h:222:2: note: in expansion of macro 'TP_printk'
TP_printk("%pF %p: nid: %d objects to shrink %ld gfp_flags %s pgs_scanned %ld lru_pgs %ld cache items %ld delta %lld total_scan %ld",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/vmscan.h:227:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
include/trace/trace_events.h:274:16: note: (near initialization for '__flags[38].mask')
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/vmscan.h:187:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_shrink_slab_start,
^~~~~~~~~~~
include/trace/events/vmscan.h:222:2: note: in expansion of macro 'TP_printk'
TP_printk("%pF %p: nid: %d objects to shrink %ld gfp_flags %s pgs_scanned %ld lru_pgs %ld cache items %ld delta %lld total_scan %ld",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/vmscan.h:227:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
>> include/trace/trace_events.h:274:4: warning: missing braces around initializer [-Wmissing-braces]
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/vmscan.h:187:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_shrink_slab_start,
^~~~~~~~~~~
include/trace/events/vmscan.h:222:2: note: in expansion of macro 'TP_printk'
TP_printk("%pF %p: nid: %d objects to shrink %ld gfp_flags %s pgs_scanned %ld lru_pgs %ld cache items %ld delta %lld total_scan %ld",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/vmscan.h:227:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
include/trace/trace_events.h:274:4: note: (near initialization for '__flags')
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/vmscan.h:187:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_shrink_slab_start,
^~~~~~~~~~~
include/trace/events/vmscan.h:222:2: note: in expansion of macro 'TP_printk'
TP_printk("%pF %p: nid: %d objects to shrink %ld gfp_flags %s pgs_scanned %ld lru_pgs %ld cache items %ld delta %lld total_scan %ld",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/vmscan.h:227:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
--
In file included from include/trace/define_trace.h:95:0,
from include/trace/events/kmem.h:323,
from mm/slab_common.c:24:
include/trace/events/kmem.h: In function 'trace_raw_output_kmem_alloc':
>> include/trace/trace_events.h:274:16: error: expected expression before ',' token
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
>> include/trace/events/kmem.h:37:2: note: in expansion of macro 'TP_printk'
TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
>> include/trace/events/kmem.h:42:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags))
^~~~~~~~~~~~~~
include/trace/events/kmem.h: In function 'trace_raw_output_kmem_alloc_node':
>> include/trace/trace_events.h:274:16: error: expected expression before ',' token
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/events/kmem.h:90:2: note: in expansion of macro 'TP_printk'
TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:95:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
>> include/trace/trace_events.h:274:16: error: initializer element is not constant
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/events/kmem.h:90:2: note: in expansion of macro 'TP_printk'
TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:95:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
include/trace/trace_events.h:274:16: note: (near initialization for '__flags[38].mask')
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/events/kmem.h:90:2: note: in expansion of macro 'TP_printk'
TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:95:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
>> include/trace/trace_events.h:274:4: warning: missing braces around initializer [-Wmissing-braces]
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/events/kmem.h:90:2: note: in expansion of macro 'TP_printk'
TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:95:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
include/trace/trace_events.h:274:4: note: (near initialization for '__flags')
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/events/kmem.h:90:2: note: in expansion of macro 'TP_printk'
TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:95:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags),
^~~~~~~~~~~~~~
include/trace/events/kmem.h: In function 'trace_raw_output_mm_page_alloc':
>> include/trace/trace_events.h:274:16: error: expected expression before ',' token
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/kmem.h:194:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_page_alloc,
^~~~~~~~~~~
include/trace/events/kmem.h:215:2: note: in expansion of macro 'TP_printk'
TP_printk("page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:220:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags))
^~~~~~~~~~~~~~
>> include/trace/trace_events.h:274:16: error: initializer element is not constant
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/kmem.h:194:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_page_alloc,
^~~~~~~~~~~
include/trace/events/kmem.h:215:2: note: in expansion of macro 'TP_printk'
TP_printk("page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:220:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags))
^~~~~~~~~~~~~~
include/trace/trace_events.h:274:16: note: (near initialization for '__flags[38].mask')
{ flag_array, { -1, NULL }}; \
^
include/trace/trace_events.h:327:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
trace_seq_printf(s, print); \
^~~~~
include/trace/trace_events.h:65:9: note: in expansion of macro 'PARAMS'
PARAMS(print)); \
^~~~~~
>> include/trace/events/kmem.h:194:1: note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(mm_page_alloc,
^~~~~~~~~~~
include/trace/events/kmem.h:215:2: note: in expansion of macro 'TP_printk'
TP_printk("page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s",
^~~~~~~~~
>> include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'
(flags) ? __print_flags(flags, "|", \
^~~~~~~~~~~~~
include/trace/events/kmem.h:220:3: note: in expansion of macro 'show_gfp_flags'
show_gfp_flags(__entry->gfp_flags))
^~~~~~~~~~~~~~
vim +/__print_flags +53 include/trace/events/mmflags.h
420adbe9f Vlastimil Babka 2016-03-15 37 {(unsigned long)__GFP_COMP, "__GFP_COMP"}, \
420adbe9f Vlastimil Babka 2016-03-15 38 {(unsigned long)__GFP_ZERO, "__GFP_ZERO"}, \
420adbe9f Vlastimil Babka 2016-03-15 39 {(unsigned long)__GFP_NOMEMALLOC, "__GFP_NOMEMALLOC"}, \
420adbe9f Vlastimil Babka 2016-03-15 40 {(unsigned long)__GFP_MEMALLOC, "__GFP_MEMALLOC"}, \
420adbe9f Vlastimil Babka 2016-03-15 41 {(unsigned long)__GFP_HARDWALL, "__GFP_HARDWALL"}, \
420adbe9f Vlastimil Babka 2016-03-15 42 {(unsigned long)__GFP_THISNODE, "__GFP_THISNODE"}, \
420adbe9f Vlastimil Babka 2016-03-15 43 {(unsigned long)__GFP_RECLAIMABLE, "__GFP_RECLAIMABLE"}, \
420adbe9f Vlastimil Babka 2016-03-15 44 {(unsigned long)__GFP_MOVABLE, "__GFP_MOVABLE"}, \
420adbe9f Vlastimil Babka 2016-03-15 45 {(unsigned long)__GFP_ACCOUNT, "__GFP_ACCOUNT"}, \
420adbe9f Vlastimil Babka 2016-03-15 46 {(unsigned long)__GFP_NOTRACK, "__GFP_NOTRACK"}, \
420adbe9f Vlastimil Babka 2016-03-15 47 {(unsigned long)__GFP_WRITE, "__GFP_WRITE"}, \
420adbe9f Vlastimil Babka 2016-03-15 48 {(unsigned long)__GFP_RECLAIM, "__GFP_RECLAIM"}, \
420adbe9f Vlastimil Babka 2016-03-15 49 {(unsigned long)__GFP_DIRECT_RECLAIM, "__GFP_DIRECT_RECLAIM"},\
420adbe9f Vlastimil Babka 2016-03-15 50 {(unsigned long)__GFP_KSWAPD_RECLAIM, "__GFP_KSWAPD_RECLAIM"},\
420adbe9f Vlastimil Babka 2016-03-15 51
420adbe9f Vlastimil Babka 2016-03-15 52 #define show_gfp_flags(flags) \
420adbe9f Vlastimil Babka 2016-03-15 @53 (flags) ? __print_flags(flags, "|", \
420adbe9f Vlastimil Babka 2016-03-15 54 __def_gfpflag_names \
420adbe9f Vlastimil Babka 2016-03-15 55 ) : "none"
420adbe9f Vlastimil Babka 2016-03-15 56
420adbe9f Vlastimil Babka 2016-03-15 57 #ifdef CONFIG_MMU
420adbe9f Vlastimil Babka 2016-03-15 58 #define IF_HAVE_PG_MLOCK(flag,string) ,{1UL << flag, string}
420adbe9f Vlastimil Babka 2016-03-15 59 #else
420adbe9f Vlastimil Babka 2016-03-15 60 #define IF_HAVE_PG_MLOCK(flag,string)
420adbe9f Vlastimil Babka 2016-03-15 61 #endif
:::::: The code at line 53 was first introduced by commit
:::::: 420adbe9fc1a45187cfa74df9dbfd72272c4e2fa mm, tracing: unify mm flags handling in tracepoints and printk
:::::: TO: Vlastimil Babka <vbabka@suse.cz>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 38277 bytes --]
reply other threads:[~2017-01-06 12:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201701062005.a2g4Lq1c%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
/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