Re: [PATCH v2] btrfs: add compression trace points

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

 



Hi Anand,

[auto build test WARNING on kdave/for-next]
[also build test WARNING on next-20170609]
[cannot apply to btrfs/next tip/perf/core v4.12-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Anand-Jain/btrfs-add-compression-trace-points/20170612-184615
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: s390-allmodconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.3.0-18) 6.3.0 20170516
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:95:0,
                    from include/trace/events/btrfs.h:1672,
                    from fs/btrfs/super.c:65:
   include/trace/events/btrfs.h: In function 'trace_raw_output_btrfs_data_transformer':
>> include/trace/events/btrfs.h:91:12: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'ino_t {aka unsigned int}' [-Wformat=]
     TP_printk("%pU: " fmt, __entry->fsid, args)
               ^
   include/trace/trace_events.h:343: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:1630:1: note: in expansion of macro 'TRACE_EVENT'
    TRACE_EVENT(btrfs_data_transformer,
    ^~~~~~~~~~~
>> include/trace/events/btrfs.h:91:2: note: in expansion of macro 'TP_printk'
     TP_printk("%pU: " fmt, __entry->fsid, args)
     ^~~~~~~~~
>> include/trace/events/btrfs.h:1661:2: note: in expansion of macro 'TP_printk_btrfs'
     TP_printk_btrfs("%s %s ino=%lu type=%s len_before=%lu len_after=%lu "
     ^~~~~~~~~~~~~~~

vim +91 include/trace/events/btrfs.h

3f7de037 Josef Bacik  2011-11-10  75  
8c2a3ca2 Josef Bacik  2012-01-10  76  #define BTRFS_UUID_SIZE 16
bc074524 Jeff Mahoney 2016-06-09  77  #define TP_STRUCT__entry_fsid __array(u8, fsid, BTRFS_UUID_SIZE)
bc074524 Jeff Mahoney 2016-06-09  78  
bc074524 Jeff Mahoney 2016-06-09  79  #define TP_fast_assign_fsid(fs_info)					\
bc074524 Jeff Mahoney 2016-06-09  80  	memcpy(__entry->fsid, fs_info->fsid, BTRFS_UUID_SIZE)
bc074524 Jeff Mahoney 2016-06-09  81  
bc074524 Jeff Mahoney 2016-06-09  82  #define TP_STRUCT__entry_btrfs(args...)					\
bc074524 Jeff Mahoney 2016-06-09  83  	TP_STRUCT__entry(						\
bc074524 Jeff Mahoney 2016-06-09  84  		TP_STRUCT__entry_fsid					\
bc074524 Jeff Mahoney 2016-06-09  85  		args)
bc074524 Jeff Mahoney 2016-06-09  86  #define TP_fast_assign_btrfs(fs_info, args...)				\
bc074524 Jeff Mahoney 2016-06-09  87  	TP_fast_assign(							\
bc074524 Jeff Mahoney 2016-06-09  88  		TP_fast_assign_fsid(fs_info);				\
bc074524 Jeff Mahoney 2016-06-09  89  		args)
bc074524 Jeff Mahoney 2016-06-09  90  #define TP_printk_btrfs(fmt, args...) \
bc074524 Jeff Mahoney 2016-06-09 @91  	TP_printk("%pU: " fmt, __entry->fsid, args)
8c2a3ca2 Josef Bacik  2012-01-10  92  
1abe9b8a liubo        2011-03-24  93  TRACE_EVENT(btrfs_transaction_commit,
1abe9b8a liubo        2011-03-24  94  
1abe9b8a liubo        2011-03-24  95  	TP_PROTO(struct btrfs_root *root),
1abe9b8a liubo        2011-03-24  96  
1abe9b8a liubo        2011-03-24  97  	TP_ARGS(root),
1abe9b8a liubo        2011-03-24  98  
bc074524 Jeff Mahoney 2016-06-09  99  	TP_STRUCT__entry_btrfs(

:::::: The code at line 91 was first introduced by commit
:::::: bc074524e123ded281cde25ebc5661910f9679e3 btrfs: prefix fsid to all trace events

:::::: TO: Jeff Mahoney <jeffm@xxxxxxxx>
:::::: CC: David Sterba <dsterba@xxxxxxxx>

---
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 Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux