* [dhowells-fs:ceph-iter 87/105] drivers/block/rbd.c:2745:3: warning: needs fixing
@ 2024-01-16 22:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-16 22:09 UTC (permalink / raw)
To: David Howells; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git ceph-iter
head: 2cf82c6e7baf6d3a2adc0692707028da395f1553
commit: 858dfc3957679d91f48571bff69fa6ea4ecaea2f [87/105] [INCOMPLETE] rbd: Switch from using bvec_iter to iov_iter
config: i386-randconfig-006-20240116 (https://download.01.org/0day-ci/archive/20240117/202401170626.BIWS97iW-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240117/202401170626.BIWS97iW-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/202401170626.BIWS97iW-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/block/rbd.c:2745:3: warning: needs fixing [-W#warnings]
2745 | #warning needs fixing
| ^
1 warning generated.
vim +2745 drivers/block/rbd.c
2709
2710 static int rbd_obj_read_from_parent(struct rbd_obj_request *obj_req)
2711 {
2712 struct rbd_img_request *img_req = obj_req->img_request;
2713 struct rbd_device *parent = img_req->rbd_dev->parent;
2714 struct rbd_img_request *child_img_req;
2715 int ret;
2716
2717 child_img_req = kmem_cache_alloc(rbd_img_request_cache, GFP_NOIO);
2718 if (!child_img_req)
2719 return -ENOMEM;
2720
2721 rbd_img_request_init(child_img_req, parent, OBJ_OP_READ);
2722 __set_bit(IMG_REQ_CHILD, &child_img_req->flags);
2723 child_img_req->obj_request = obj_req;
2724
2725 down_read(&parent->header_rwsem);
2726 rbd_img_capture_header(child_img_req);
2727 up_read(&parent->header_rwsem);
2728
2729 dout("%s child_img_req %p for obj_req %p\n", __func__, child_img_req,
2730 obj_req);
2731
2732 #if 0 //////////////////// TODO
2733 if (!rbd_img_is_write(img_req)) {
2734 ret = rbd_img_fill_request(child_img_req,
2735 obj_req->img_extents,
2736 obj_req->num_img_extents,
2737 &obj_req->iter);
2738 } else {
2739 ret = rbd_img_fill_request(img_req,
2740 obj_req->img_extents,
2741 obj_req->num_img_extents,
2742 &obj_req->copyup_buf->iter);
2743 }
2744 #else
> 2745 #warning needs fixing
2746 ret = -ENOMEM;
2747 BUG();
2748 #endif
2749 if (ret) {
2750 rbd_img_request_destroy(child_img_req);
2751 return ret;
2752 }
2753
2754 /* avoid parent chain recursion */
2755 rbd_img_schedule(child_img_req, 0);
2756 return 0;
2757 }
2758
--
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-01-16 22:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 22:09 [dhowells-fs:ceph-iter 87/105] drivers/block/rbd.c:2745:3: warning: needs fixing 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