public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Bart Van Assche <[email protected]>
Cc: [email protected], Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>,
	[email protected], Jens Axboe <[email protected]>
Subject: [ammarfaizi2-block:axboe/linux-block/for-next 85/112] include/trace/events/f2fs.h:1027:1: sparse: sparse: cast to restricted blk_opf_t
Date: Sun, 17 Jul 2022 08:52:39 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/ammarfaizi2/linux-block axboe/linux-block/for-next
head:   b1fc9e8ad3d2d294d15e87d57af00890cd23cfc4
commit: 7649c873c16a384d447f7dbf9b153e333159f914 [85/112] fs/f2fs: Use the enum req_op and blk_opf_t types
config: csky-randconfig-s053-20220715 (https://download.01.org/0day-ci/archive/20220717/[email protected]/config)
compiler: csky-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/ammarfaizi2/linux-block/commit/7649c873c16a384d447f7dbf9b153e333159f914
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block axboe/linux-block/for-next
        git checkout 7649c873c16a384d447f7dbf9b153e333159f914
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky SHELL=/bin/bash fs/f2fs/ fs/jbd2/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   fs/f2fs/super.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/f2fs.h):
>> include/trace/events/f2fs.h:1027:1: sparse: sparse: cast to restricted blk_opf_t
>> include/trace/events/f2fs.h:1027:1: sparse: sparse: cast to restricted blk_opf_t
   include/trace/events/f2fs.h:1027:1: sparse: sparse: restricted blk_opf_t degrades to integer
   include/trace/events/f2fs.h:1027:1: sparse: sparse: restricted blk_opf_t degrades to integer
>> include/trace/events/f2fs.h:1027:1: sparse: sparse: cast to restricted blk_opf_t
>> include/trace/events/f2fs.h:1027:1: sparse: sparse: cast to restricted blk_opf_t
   include/trace/events/f2fs.h:1027:1: sparse: sparse: restricted blk_opf_t degrades to integer
   include/trace/events/f2fs.h:1027:1: sparse: sparse: restricted blk_opf_t degrades to integer
   include/trace/events/f2fs.h:1086:1: sparse: sparse: cast to restricted blk_opf_t
   include/trace/events/f2fs.h:1086:1: sparse: sparse: cast to restricted blk_opf_t
   include/trace/events/f2fs.h:1086:1: sparse: sparse: restricted blk_opf_t degrades to integer
   include/trace/events/f2fs.h:1086:1: sparse: sparse: restricted blk_opf_t degrades to integer
   include/trace/events/f2fs.h:1086:1: sparse: sparse: cast to restricted blk_opf_t
   include/trace/events/f2fs.h:1086:1: sparse: sparse: cast to restricted blk_opf_t
   include/trace/events/f2fs.h:1086:1: sparse: sparse: restricted blk_opf_t degrades to integer
   include/trace/events/f2fs.h:1086:1: sparse: sparse: restricted blk_opf_t degrades to integer
   fs/f2fs/super.c: note: in included file (through arch/csky/include/asm/atomic.h, include/linux/atomic.h, include/asm-generic/bitops/lock.h, ...):
   include/asm-generic/atomic.h:105:1: sparse: sparse: context imbalance in 'f2fs_drop_inode' - unexpected unlock

vim +1027 include/trace/events/f2fs.h

c01e285324793a8 Namjae Jeon     2013-04-23  1026  
3e1c8f125eeea0f Chao Yu         2014-12-23 @1027  DECLARE_EVENT_CLASS(f2fs__submit_page_bio,
3e1c8f125eeea0f Chao Yu         2014-12-23  1028  
2ace38e00e54f5c Chao Yu         2014-12-24  1029  	TP_PROTO(struct page *page, struct f2fs_io_info *fio),
3e1c8f125eeea0f Chao Yu         2014-12-23  1030  
2ace38e00e54f5c Chao Yu         2014-12-24  1031  	TP_ARGS(page, fio),
3e1c8f125eeea0f Chao Yu         2014-12-23  1032  
3e1c8f125eeea0f Chao Yu         2014-12-23  1033  	TP_STRUCT__entry(
3e1c8f125eeea0f Chao Yu         2014-12-23  1034  		__field(dev_t, dev)
3e1c8f125eeea0f Chao Yu         2014-12-23  1035  		__field(ino_t, ino)
3e1c8f125eeea0f Chao Yu         2014-12-23  1036  		__field(pgoff_t, index)
7a9d75481b85d59 Chao Yu         2016-02-22  1037  		__field(block_t, old_blkaddr)
7a9d75481b85d59 Chao Yu         2016-02-22  1038  		__field(block_t, new_blkaddr)
7649c873c16a384 Bart Van Assche 2022-07-14  1039  		__field(enum req_op, op)
7649c873c16a384 Bart Van Assche 2022-07-14  1040  		__field(blk_opf_t, op_flags)
a912b54d3aaa011 Jaegeuk Kim     2017-05-10  1041  		__field(int, temp)
3e1c8f125eeea0f Chao Yu         2014-12-23  1042  		__field(int, type)
3e1c8f125eeea0f Chao Yu         2014-12-23  1043  	),
3e1c8f125eeea0f Chao Yu         2014-12-23  1044  
3e1c8f125eeea0f Chao Yu         2014-12-23  1045  	TP_fast_assign(
4969c06a0d83c9c Jaegeuk Kim     2019-07-01  1046  		__entry->dev		= page_file_mapping(page)->host->i_sb->s_dev;
4969c06a0d83c9c Jaegeuk Kim     2019-07-01  1047  		__entry->ino		= page_file_mapping(page)->host->i_ino;
3e1c8f125eeea0f Chao Yu         2014-12-23  1048  		__entry->index		= page->index;
7a9d75481b85d59 Chao Yu         2016-02-22  1049  		__entry->old_blkaddr	= fio->old_blkaddr;
7a9d75481b85d59 Chao Yu         2016-02-22  1050  		__entry->new_blkaddr	= fio->new_blkaddr;
04d328defd06257 Mike Christie   2016-06-05  1051  		__entry->op		= fio->op;
04d328defd06257 Mike Christie   2016-06-05  1052  		__entry->op_flags	= fio->op_flags;
a912b54d3aaa011 Jaegeuk Kim     2017-05-10  1053  		__entry->temp		= fio->temp;
2ace38e00e54f5c Chao Yu         2014-12-24  1054  		__entry->type		= fio->type;
3e1c8f125eeea0f Chao Yu         2014-12-23  1055  	),
3e1c8f125eeea0f Chao Yu         2014-12-23  1056  
3e1c8f125eeea0f Chao Yu         2014-12-23  1057  	TP_printk("dev = (%d,%d), ino = %lu, page_index = 0x%lx, "
a912b54d3aaa011 Jaegeuk Kim     2017-05-10  1058  		"oldaddr = 0x%llx, newaddr = 0x%llx, rw = %s(%s), type = %s_%s",
3e1c8f125eeea0f Chao Yu         2014-12-23  1059  		show_dev_ino(__entry),
3e1c8f125eeea0f Chao Yu         2014-12-23  1060  		(unsigned long)__entry->index,
7a9d75481b85d59 Chao Yu         2016-02-22  1061  		(unsigned long long)__entry->old_blkaddr,
7a9d75481b85d59 Chao Yu         2016-02-22  1062  		(unsigned long long)__entry->new_blkaddr,
d621e6b3707f4c3 Jaegeuk Kim     2016-12-21  1063  		show_bio_type(__entry->op, __entry->op_flags),
a912b54d3aaa011 Jaegeuk Kim     2017-05-10  1064  		show_block_temp(__entry->temp),
3e1c8f125eeea0f Chao Yu         2014-12-23  1065  		show_block_type(__entry->type))
3e1c8f125eeea0f Chao Yu         2014-12-23  1066  );
3e1c8f125eeea0f Chao Yu         2014-12-23  1067  

:::::: The code at line 1027 was first introduced by commit
:::::: 3e1c8f125eeea0f8111e2b9131162bfba32c6381 f2fs: cleanup trace event of f2fs_submit_page_{m,}bio with DECLARE_EVENT_CLASS

:::::: TO: Chao Yu <[email protected]>
:::::: CC: Jaegeuk Kim <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-17  0:53 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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