Re: [PATCH 1/3] bcache: the gc_sectors_used size matches the bucket size

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

 



Hi Mingzhe,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.5-rc2 next-20230718]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Mingzhe-Zou/bcache-Separate-bch_moving_gc-from-bch_btree_gc/20230718-195022
base:   linus/master
patch link:    https://lore.kernel.org/r/20230717124143.171-1-mingzhe.zou%40easystack.cn
patch subject: [PATCH 1/3] bcache: the gc_sectors_used size matches the bucket size
config: i386-randconfig-r024-20230718 (https://download.01.org/0day-ci/archive/20230719/202307190650.U1M6Vswr-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230719/202307190650.U1M6Vswr-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307190650.U1M6Vswr-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from drivers/md/bcache/trace.c:9:
   In file included from include/trace/events/bcache.h:505:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:419:
>> include/trace/events/bcache.h:441:22: error: call to undeclared function 'GC_SECTORS_USED'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                   __entry->sectors        = GC_SECTORS_USED(&ca->buckets[bucket]);
                                             ^
   In file included from drivers/md/bcache/trace.c:9:
   In file included from include/trace/events/bcache.h:505:
   In file included from include/trace/define_trace.h:103:
   In file included from include/trace/perf.h:75:
>> include/trace/events/bcache.h:441:22: error: call to undeclared function 'GC_SECTORS_USED'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                   __entry->sectors        = GC_SECTORS_USED(&ca->buckets[bucket]);
                                             ^
   2 errors generated.


vim +/GC_SECTORS_USED +441 include/trace/events/bcache.h

cafe563591446c Kent Overstreet 2013-03-23  427  
7159b1ad3dded9 Kent Overstreet 2014-02-12  428  TRACE_EVENT(bcache_invalidate,
7159b1ad3dded9 Kent Overstreet 2014-02-12  429  	TP_PROTO(struct cache *ca, size_t bucket),
7159b1ad3dded9 Kent Overstreet 2014-02-12  430  	TP_ARGS(ca, bucket),
cafe563591446c Kent Overstreet 2013-03-23  431  
cafe563591446c Kent Overstreet 2013-03-23  432  	TP_STRUCT__entry(
7159b1ad3dded9 Kent Overstreet 2014-02-12  433  		__field(unsigned,	sectors			)
7159b1ad3dded9 Kent Overstreet 2014-02-12  434  		__field(dev_t,		dev			)
7159b1ad3dded9 Kent Overstreet 2014-02-12  435  		__field(__u64,		offset			)
cafe563591446c Kent Overstreet 2013-03-23  436  	),
cafe563591446c Kent Overstreet 2013-03-23  437  
cafe563591446c Kent Overstreet 2013-03-23  438  	TP_fast_assign(
7159b1ad3dded9 Kent Overstreet 2014-02-12  439  		__entry->dev		= ca->bdev->bd_dev;
7159b1ad3dded9 Kent Overstreet 2014-02-12  440  		__entry->offset		= bucket << ca->set->bucket_bits;
7159b1ad3dded9 Kent Overstreet 2014-02-12 @441  		__entry->sectors	= GC_SECTORS_USED(&ca->buckets[bucket]);
cafe563591446c Kent Overstreet 2013-03-23  442  	),
cafe563591446c Kent Overstreet 2013-03-23  443  
7159b1ad3dded9 Kent Overstreet 2014-02-12  444  	TP_printk("invalidated %u sectors at %d,%d sector=%llu",
7159b1ad3dded9 Kent Overstreet 2014-02-12  445  		  __entry->sectors, MAJOR(__entry->dev),
7159b1ad3dded9 Kent Overstreet 2014-02-12  446  		  MINOR(__entry->dev), __entry->offset)
7159b1ad3dded9 Kent Overstreet 2014-02-12  447  );
7159b1ad3dded9 Kent Overstreet 2014-02-12  448  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux