[zwisler:mmots_dax_tracepoint 14/143] include/trace/events/mmflags.h:53:12: note: in expansion of macro '__print_flags'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]