tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6014cfa5bf32cf8c5c58b3cfd5ee0e1542c8a825 commit: bc4aeb81453fc78222c29072310d40f2f9a57c31 [10820/10906] Merge branch 'for-next' of git://git.kernel.dk/linux-block.git config: sparc-randconfig-s032-20220715 (https://download.01.org/0day-ci/archive/20220716/202207160452.HPLSlqzA-lkp@xxxxxxxxx/config) compiler: sparc64-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=bc4aeb81453fc78222c29072310d40f2f9a57c31 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout bc4aeb81453fc78222c29072310d40f2f9a57c31 # 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=sparc SHELL=/bin/bash fs/btrfs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) fs/btrfs/super.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/btrfs.h): >> include/trace/events/btrfs.h:2327:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned char [usertype] opf @@ got restricted blk_opf_t enum req_op @@ include/trace/events/btrfs.h:2327:1: sparse: expected unsigned char [usertype] opf include/trace/events/btrfs.h:2327:1: sparse: got restricted blk_opf_t enum req_op vim +2327 include/trace/events/btrfs.h 480b9b4d847fe1 Qu Wenruo 2019-04-29 2326 7e1026949cb92d Qu Wenruo 2022-06-01 @2327 DECLARE_EVENT_CLASS(btrfs_raid56_bio, 7e1026949cb92d Qu Wenruo 2022-06-01 2328 7e1026949cb92d Qu Wenruo 2022-06-01 2329 TP_PROTO(const struct btrfs_raid_bio *rbio, 7e1026949cb92d Qu Wenruo 2022-06-01 2330 const struct bio *bio, 7e1026949cb92d Qu Wenruo 2022-06-01 2331 const struct raid56_bio_trace_info *trace_info), 7e1026949cb92d Qu Wenruo 2022-06-01 2332 7e1026949cb92d Qu Wenruo 2022-06-01 2333 TP_ARGS(rbio, bio, trace_info), 7e1026949cb92d Qu Wenruo 2022-06-01 2334 7e1026949cb92d Qu Wenruo 2022-06-01 2335 TP_STRUCT__entry_btrfs( 7e1026949cb92d Qu Wenruo 2022-06-01 2336 __field( u64, full_stripe ) 7e1026949cb92d Qu Wenruo 2022-06-01 2337 __field( u64, physical ) 7e1026949cb92d Qu Wenruo 2022-06-01 2338 __field( u64, devid ) 7e1026949cb92d Qu Wenruo 2022-06-01 2339 __field( u32, offset ) 7e1026949cb92d Qu Wenruo 2022-06-01 2340 __field( u32, len ) 7e1026949cb92d Qu Wenruo 2022-06-01 2341 __field( u8, opf ) 7e1026949cb92d Qu Wenruo 2022-06-01 2342 __field( u8, total_stripes ) 7e1026949cb92d Qu Wenruo 2022-06-01 2343 __field( u8, real_stripes ) 7e1026949cb92d Qu Wenruo 2022-06-01 2344 __field( u8, nr_data ) 7e1026949cb92d Qu Wenruo 2022-06-01 2345 __field( u8, stripe_nr ) 7e1026949cb92d Qu Wenruo 2022-06-01 2346 ), 7e1026949cb92d Qu Wenruo 2022-06-01 2347 7e1026949cb92d Qu Wenruo 2022-06-01 2348 TP_fast_assign_btrfs(rbio->bioc->fs_info, 7e1026949cb92d Qu Wenruo 2022-06-01 2349 __entry->full_stripe = rbio->bioc->raid_map[0]; 7e1026949cb92d Qu Wenruo 2022-06-01 2350 __entry->physical = bio->bi_iter.bi_sector << SECTOR_SHIFT; 7e1026949cb92d Qu Wenruo 2022-06-01 2351 __entry->len = bio->bi_iter.bi_size; 7e1026949cb92d Qu Wenruo 2022-06-01 2352 __entry->opf = bio_op(bio); 7e1026949cb92d Qu Wenruo 2022-06-01 2353 __entry->devid = trace_info->devid; 7e1026949cb92d Qu Wenruo 2022-06-01 2354 __entry->offset = trace_info->offset; 7e1026949cb92d Qu Wenruo 2022-06-01 2355 __entry->stripe_nr = trace_info->stripe_nr; 7e1026949cb92d Qu Wenruo 2022-06-01 2356 __entry->total_stripes = rbio->bioc->num_stripes; 7e1026949cb92d Qu Wenruo 2022-06-01 2357 __entry->real_stripes = rbio->real_stripes; 7e1026949cb92d Qu Wenruo 2022-06-01 2358 __entry->nr_data = rbio->nr_data; 7e1026949cb92d Qu Wenruo 2022-06-01 2359 ), 7e1026949cb92d Qu Wenruo 2022-06-01 2360 /* 7e1026949cb92d Qu Wenruo 2022-06-01 2361 * For type output, we need to output things like "DATA1" 7e1026949cb92d Qu Wenruo 2022-06-01 2362 * (the first data stripe), "DATA2" (the second data stripe), 7e1026949cb92d Qu Wenruo 2022-06-01 2363 * "PQ1" (P stripe),"PQ2" (Q stripe), "REPLACE0" (replace target device). 7e1026949cb92d Qu Wenruo 2022-06-01 2364 */ 7e1026949cb92d Qu Wenruo 2022-06-01 2365 TP_printk_btrfs( 7e1026949cb92d Qu Wenruo 2022-06-01 2366 "full_stripe=%llu devid=%lld type=%s%d offset=%d opf=0x%x physical=%llu len=%u", 7e1026949cb92d Qu Wenruo 2022-06-01 2367 __entry->full_stripe, __entry->devid, 7e1026949cb92d Qu Wenruo 2022-06-01 2368 (__entry->stripe_nr < __entry->nr_data) ? "DATA" : 7e1026949cb92d Qu Wenruo 2022-06-01 2369 ((__entry->stripe_nr < __entry->real_stripes) ? "PQ" : 7e1026949cb92d Qu Wenruo 2022-06-01 2370 "REPLACE"), 7e1026949cb92d Qu Wenruo 2022-06-01 2371 (__entry->stripe_nr < __entry->nr_data) ? 7e1026949cb92d Qu Wenruo 2022-06-01 2372 (__entry->stripe_nr + 1) : 7e1026949cb92d Qu Wenruo 2022-06-01 2373 ((__entry->stripe_nr < __entry->real_stripes) ? 7e1026949cb92d Qu Wenruo 2022-06-01 2374 (__entry->stripe_nr - __entry->nr_data + 1) : 0), 7e1026949cb92d Qu Wenruo 2022-06-01 2375 __entry->offset, __entry->opf, __entry->physical, __entry->len) 7e1026949cb92d Qu Wenruo 2022-06-01 2376 ); 7e1026949cb92d Qu Wenruo 2022-06-01 2377 :::::: The code at line 2327 was first introduced by commit :::::: 7e1026949cb92db8517397c6621966ecd962180d btrfs: add trace event for submitted RAID56 bio :::::: TO: Qu Wenruo <wqu@xxxxxxxx> :::::: CC: David Sterba <dsterba@xxxxxxxx> -- 0-DAY CI Kernel Test Service https://01.org/lkp