tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: c329afbe44a4c2722501c891e29b8409d2173549 commit: 67e0c6872f92397d82e9a938623105573f590fc3 [1815/1815] blk-io-hierarchy: support hierarchy stats for bio lifetime config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250110/202501100852.BzTb0ttz-lkp@i...) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250110/202501100852.BzTb0ttz-lkp@i...)
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/202501100852.BzTb0ttz-lkp@intel.com/
All warnings (new ones prefixed by >>):
block/blk-io-hierarchy/iodump.c:561:7: warning: no previous prototype for function '__bio_stage_hierarchy_start' [-Wmissing-prototypes]
561 | void *__bio_stage_hierarchy_start(struct bio_stage_dump_data *bstage_ddata, | ^ block/blk-io-hierarchy/iodump.c:561:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 561 | void *__bio_stage_hierarchy_start(struct bio_stage_dump_data *bstage_ddata, | ^ | static 1 warning generated.
vim +/__bio_stage_hierarchy_start +561 block/blk-io-hierarchy/iodump.c
1bf8f90fb90c60 Yu Kuai 2024-11-27 560 1bf8f90fb90c60 Yu Kuai 2024-11-27 @561 void *__bio_stage_hierarchy_start(struct bio_stage_dump_data *bstage_ddata, 1bf8f90fb90c60 Yu Kuai 2024-11-27 562 loff_t *pos) 1bf8f90fb90c60 Yu Kuai 2024-11-27 563 { 1bf8f90fb90c60 Yu Kuai 2024-11-27 564 struct pos_data *pdata = &bstage_ddata->pdata; 1bf8f90fb90c60 Yu Kuai 2024-11-27 565 struct rq_dump_data *rq_ddata = &bstage_ddata->rq_ddata; 1bf8f90fb90c60 Yu Kuai 2024-11-27 566 1bf8f90fb90c60 Yu Kuai 2024-11-27 567 retry: 1bf8f90fb90c60 Yu Kuai 2024-11-27 568 if (stage_is_bio(pdata->stage)) { 1bf8f90fb90c60 Yu Kuai 2024-11-27 569 struct list_head *list; 1bf8f90fb90c60 Yu Kuai 2024-11-27 570 struct bio_dump_data *bio_ddata = 1bf8f90fb90c60 Yu Kuai 2024-11-27 571 get_bio_stage_ddata(rq_ddata->q, pdata->stage); 1bf8f90fb90c60 Yu Kuai 2024-11-27 572 1bf8f90fb90c60 Yu Kuai 2024-11-27 573 if (!bio_ddata) { 1bf8f90fb90c60 Yu Kuai 2024-11-27 574 bio_stage_start_next_stage(bstage_ddata, pos); 1bf8f90fb90c60 Yu Kuai 2024-11-27 575 goto retry; 1bf8f90fb90c60 Yu Kuai 2024-11-27 576 } 1bf8f90fb90c60 Yu Kuai 2024-11-27 577 1bf8f90fb90c60 Yu Kuai 2024-11-27 578 spin_lock_irq(&bio_ddata->lock); 1bf8f90fb90c60 Yu Kuai 2024-11-27 579 list = seq_list_start(&bio_ddata->head, pdata->count); 1bf8f90fb90c60 Yu Kuai 2024-11-27 580 if (list) 1bf8f90fb90c60 Yu Kuai 2024-11-27 581 return list; 1bf8f90fb90c60 Yu Kuai 2024-11-27 582 1bf8f90fb90c60 Yu Kuai 2024-11-27 583 spin_unlock_irq(&bio_ddata->lock); 1bf8f90fb90c60 Yu Kuai 2024-11-27 584 bio_stage_start_next_stage(bstage_ddata, pos); 1bf8f90fb90c60 Yu Kuai 2024-11-27 585 goto retry; 1bf8f90fb90c60 Yu Kuai 2024-11-27 586 } 1bf8f90fb90c60 Yu Kuai 2024-11-27 587 1bf8f90fb90c60 Yu Kuai 2024-11-27 588 if (pdata->stage == STAGE_BIO && 1bf8f90fb90c60 Yu Kuai 2024-11-27 589 __rq_hierarchy_start(rq_ddata, pdata->count)) 1bf8f90fb90c60 Yu Kuai 2024-11-27 590 return bstage_ddata; 1bf8f90fb90c60 Yu Kuai 2024-11-27 591 1bf8f90fb90c60 Yu Kuai 2024-11-27 592 return NULL; 1bf8f90fb90c60 Yu Kuai 2024-11-27 593 } 1bf8f90fb90c60 Yu Kuai 2024-11-27 594
:::::: The code at line 561 was first introduced by commit :::::: 1bf8f90fb90c600d9f372e6be4ef251cc8905f04 block-io-hierarchy: core hierarchy stats and iodump implementation
:::::: TO: Yu Kuai yukuai3@huawei.com :::::: CC: Yu Kuai yukuai3@huawei.com