From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gnuweeb.org (Postfix) with ESMTPS id 68D767E317 for ; Sat, 16 Jul 2022 16:32:27 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gVEhVw2c; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657989147; x=1689525147; h=date:from:to:cc:subject:message-id:mime-version; bh=xz22xLhXEgfLfQ885/Ke0sez+mHNdtV5CCAwywlhiCQ=; b=gVEhVw2ciV8Hb3GGVlrMTM708QRX/PXyw7hWGB8CaFWc2pAhA4r543QS IS0UtycaWiAlcy/j44/svxIJ5CDEhO7GyahStGHnP84FT6VOnIfOQMD7y ppI7repCO+cwtQzZfCMVuSfqwKuk3N84QG+R+7xj4CTmQPNvT3iaQjQ/n Sio3Hc9sZLXkRaVbGlRdh2iEjl7QFs4bRQydRM2T9QWLIPCji6WiuRl/9 4DFusPXDAo/x6c1d9TGrQ4JOQOZ481QwcOGgEFjw5ZPESApIqZOc0tpPP igF9ODkI/RaurLHzaKIh+1oFzQGxwpTHWwz1DaRq2NfjgJgsUQLpq6H5r w==; X-IronPort-AV: E=McAfee;i="6400,9594,10410"; a="283552951" X-IronPort-AV: E=Sophos;i="5.92,277,1650956400"; d="scan'208";a="283552951" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2022 09:32:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,277,1650956400"; d="scan'208";a="842839976" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 16 Jul 2022 09:32:24 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCkiO-0001p8-Bm; Sat, 16 Jul 2022 16:32:24 +0000 Date: Sun, 17 Jul 2022 00:31:35 +0800 From: kernel test robot To: Bart Van Assche Cc: kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Jens Axboe Subject: [ammarfaizi2-block:axboe/linux-block/for-next 38/112] include/trace/events/f2fs.h:1027:1: sparse: sparse: restricted blk_opf_t degrades to integer Message-ID: <202207170048.aN01rjrc-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block axboe/linux-block/for-next head: b1fc9e8ad3d2d294d15e87d57af00890cd23cfc4 commit: 342a72a334073f163da924b69c3d3fb4685eb33a [38/112] block: Introduce the type blk_opf_t config: csky-randconfig-s053-20220715 (https://download.01.org/0day-ci/archive/20220717/202207170048.aN01rjrc-lkp@intel.com/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/342a72a334073f163da924b69c3d3fb4685eb33a git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block axboe/linux-block/for-next git checkout 342a72a334073f163da924b69c3d3fb4685eb33a # 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 drivers/block/null_blk/./ fs/f2fs/ fs/jbd2/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot 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: incorrect type in argument 1 (different base types) @@ expected restricted blk_opf_t enum req_op op @@ got int op @@ include/trace/events/f2fs.h:1027:1: sparse: expected restricted blk_opf_t enum req_op op include/trace/events/f2fs.h:1027:1: sparse: got int op include/trace/events/f2fs.h:1027:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1027:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1027:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1027:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1027:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1027:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1027:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1027:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1027:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1027:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1027:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1027:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1027:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1027:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1027:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1027:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1027:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1027:1: sparse: got restricted blk_opf_t [usertype] >> 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: incorrect type in argument 1 (different base types) @@ expected restricted blk_opf_t enum req_op op @@ got int op @@ include/trace/events/f2fs.h:1086:1: sparse: expected restricted blk_opf_t enum req_op op include/trace/events/f2fs.h:1086:1: sparse: got int op include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1086:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1086:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1086:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1086:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1086:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted blk_opf_t [usertype] @@ include/trace/events/f2fs.h:1086:1: sparse: expected unsigned long mask include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] 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 include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/f2fs.h): include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected int op @@ got restricted blk_opf_t enum req_op @@ include/trace/events/f2fs.h:1086:1: sparse: expected int op include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t enum req_op include/trace/events/f2fs.h:1086:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected int op_flags @@ got restricted blk_opf_t [usertype] bi_opf @@ include/trace/events/f2fs.h:1086:1: sparse: expected int op_flags include/trace/events/f2fs.h:1086:1: sparse: got restricted blk_opf_t [usertype] bi_opf fs/f2fs/super.c:3125:64: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int op_flags @@ got restricted blk_opf_t @@ fs/f2fs/super.c:3125:64: sparse: expected int op_flags fs/f2fs/super.c:3125:64: sparse: got restricted blk_opf_t 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) 04d328defd06257 Mike Christie 2016-06-05 1039 __field(int, op) 04d328defd06257 Mike Christie 2016-06-05 1040 __field(int, 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 :::::: CC: Jaegeuk Kim -- 0-DAY CI Kernel Test Service https://01.org/lkp