* [bcachefs:bcachefs-testing 46/97] fs/bcachefs/alloc_foreground.c:1709:38: error: call to undeclared function 'bch2_fs_usage_read_one'; ISO C99 and later do not support implicit function declarations
@ 2024-06-09 8:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-09 8:43 UTC (permalink / raw)
To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet
tree: https://evilpiepirate.org/git/bcachefs.git bcachefs-testing
head: e514088a9cf20c9729c12fb6cf92de291fb7cca6
commit: da76cae296ca4407c458a0ffc9a746627e16304d [46/97] bcachefs: Delete journal-buf-sharded old style accounting
config: s390-defconfig (https://download.01.org/0day-ci/archive/20240609/202406091631.AlBzaflH-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240609/202406091631.AlBzaflH-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406091631.AlBzaflH-lkp@intel.com/
Note: the bcachefs/bcachefs-testing HEAD e514088a9cf20c9729c12fb6cf92de291fb7cca6 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from fs/bcachefs/alloc_foreground.c:14:
In file included from fs/bcachefs/bcachefs.h:188:
In file included from include/linux/bio.h:10:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:10:
In file included from include/linux/mm.h:2253:
include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
501 | item];
| ~~~~
include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
508 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
520 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
529 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> fs/bcachefs/alloc_foreground.c:1709:38: error: call to undeclared function 'bch2_fs_usage_read_one'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1709 | prt_printf(out, "hidden\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.hidden));
| ^
fs/bcachefs/alloc_foreground.c:1709:38: note: did you mean 'bch2_fs_usage_read_short'?
fs/bcachefs/buckets.h:299:1: note: 'bch2_fs_usage_read_short' declared here
299 | bch2_fs_usage_read_short(struct bch_fs *);
| ^
>> fs/bcachefs/alloc_foreground.c:1709:68: error: no member named 'usage_base' in 'struct bch_fs'
1709 | prt_printf(out, "hidden\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.hidden));
| ~ ^
fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
192 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__)
| ^~~~~~~~~~~
fs/bcachefs/alloc_foreground.c:1710:67: error: no member named 'usage_base' in 'struct bch_fs'
1710 | prt_printf(out, "btree\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.btree));
| ~ ^
fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
192 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__)
| ^~~~~~~~~~~
fs/bcachefs/alloc_foreground.c:1711:67: error: no member named 'usage_base' in 'struct bch_fs'
1711 | prt_printf(out, "data\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.data));
| ~ ^
fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
192 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__)
| ^~~~~~~~~~~
fs/bcachefs/alloc_foreground.c:1712:68: error: no member named 'usage_base' in 'struct bch_fs'
1712 | prt_printf(out, "cached\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.cached));
| ~ ^
fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
192 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__)
| ^~~~~~~~~~~
fs/bcachefs/alloc_foreground.c:1713:70: error: no member named 'usage_base' in 'struct bch_fs'
1713 | prt_printf(out, "reserved\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.reserved));
| ~ ^
fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
192 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__)
| ^~~~~~~~~~~
fs/bcachefs/alloc_foreground.c:1715:71: error: no member named 'usage_base' in 'struct bch_fs'
1715 | prt_printf(out, "nr_inodes\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.nr_inodes));
| ~ ^
fs/bcachefs/util.h:192:54: note: expanded from macro 'prt_printf'
192 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__)
| ^~~~~~~~~~~
5 warnings and 7 errors generated.
vim +/bch2_fs_usage_read_one +1709 fs/bcachefs/alloc_foreground.c
e98786ea855cb2 Kent Overstreet 2024-05-03 1696
e98786ea855cb2 Kent Overstreet 2024-05-03 1697 void bch2_fs_alloc_debug_to_text(struct printbuf *out, struct bch_fs *c)
e98786ea855cb2 Kent Overstreet 2024-05-03 1698 {
e98786ea855cb2 Kent Overstreet 2024-05-03 1699 unsigned nr[BCH_DATA_NR];
e98786ea855cb2 Kent Overstreet 2024-05-03 1700
e98786ea855cb2 Kent Overstreet 2024-05-03 1701 memset(nr, 0, sizeof(nr));
e98786ea855cb2 Kent Overstreet 2024-05-03 1702
e98786ea855cb2 Kent Overstreet 2024-05-03 1703 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++)
e98786ea855cb2 Kent Overstreet 2024-05-03 1704 nr[c->open_buckets[i].data_type]++;
e98786ea855cb2 Kent Overstreet 2024-05-03 1705
e98786ea855cb2 Kent Overstreet 2024-05-03 1706 printbuf_tabstop_push(out, 24);
e98786ea855cb2 Kent Overstreet 2024-05-03 1707
e98786ea855cb2 Kent Overstreet 2024-05-03 1708 percpu_down_read(&c->mark_lock);
e98786ea855cb2 Kent Overstreet 2024-05-03 @1709 prt_printf(out, "hidden\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.hidden));
e98786ea855cb2 Kent Overstreet 2024-05-03 1710 prt_printf(out, "btree\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.btree));
e98786ea855cb2 Kent Overstreet 2024-05-03 1711 prt_printf(out, "data\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.data));
e98786ea855cb2 Kent Overstreet 2024-05-03 1712 prt_printf(out, "cached\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.cached));
e98786ea855cb2 Kent Overstreet 2024-05-03 1713 prt_printf(out, "reserved\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.reserved));
e98786ea855cb2 Kent Overstreet 2024-05-03 1714 prt_printf(out, "online_reserved\t%llu\n", percpu_u64_get(c->online_reserved));
e98786ea855cb2 Kent Overstreet 2024-05-03 1715 prt_printf(out, "nr_inodes\t%llu\n", bch2_fs_usage_read_one(c, &c->usage_base->b.nr_inodes));
e98786ea855cb2 Kent Overstreet 2024-05-03 1716 percpu_up_read(&c->mark_lock);
e98786ea855cb2 Kent Overstreet 2024-05-03 1717
e98786ea855cb2 Kent Overstreet 2024-05-03 1718 prt_newline(out);
e98786ea855cb2 Kent Overstreet 2024-05-03 1719 prt_printf(out, "freelist_wait\t%s\n", c->freelist_wait.list.first ? "waiting" : "empty");
e98786ea855cb2 Kent Overstreet 2024-05-03 1720 prt_printf(out, "open buckets allocated\t%i\n", OPEN_BUCKETS_COUNT - c->open_buckets_nr_free);
e98786ea855cb2 Kent Overstreet 2024-05-03 1721 prt_printf(out, "open buckets total\t%u\n", OPEN_BUCKETS_COUNT);
e98786ea855cb2 Kent Overstreet 2024-05-03 1722 prt_printf(out, "open_buckets_wait\t%s\n", c->open_buckets_wait.list.first ? "waiting" : "empty");
e98786ea855cb2 Kent Overstreet 2024-05-03 1723 prt_printf(out, "open_buckets_btree\t%u\n", nr[BCH_DATA_btree]);
e98786ea855cb2 Kent Overstreet 2024-05-03 1724 prt_printf(out, "open_buckets_user\t%u\n", nr[BCH_DATA_user]);
e98786ea855cb2 Kent Overstreet 2024-05-03 1725 prt_printf(out, "btree reserve cache\t%u\n", c->btree_reserve_cache_nr);
e98786ea855cb2 Kent Overstreet 2024-05-03 1726 }
e98786ea855cb2 Kent Overstreet 2024-05-03 1727
:::::: The code at line 1709 was first introduced by commit
:::::: e98786ea855cb28176e27ffce23fb163a36ed32e bcachefs: bch2_print_allocator_stuck()
:::::: TO: Kent Overstreet <kent.overstreet@linux.dev>
:::::: CC: Kent Overstreet <kent.overstreet@linux.dev>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-09 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-09 8:43 [bcachefs:bcachefs-testing 46/97] fs/bcachefs/alloc_foreground.c:1709:38: error: call to undeclared function 'bch2_fs_usage_read_one'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).