[ceph-client:wip-fancy-striping 46/52] drivers/block/rbd.c:2146:8: warning: missing braces around initializer

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

 



tree:   https://github.com/ceph/ceph-client.git wip-fancy-striping
head:   d4d7a3b1f099001a55bb20a2d8a90a1d31d446fd
commit: 17df60785a630be97aaaf07d3d557f0cb20e8dd6 [46/52] rbd: switch to common striping framework
config: i386-randconfig-b0-02122003 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 17df60785a630be97aaaf07d3d557f0cb20e8dd6
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/block/rbd.c: In function 'rbd_img_fill_from_bio_nodata':
>> drivers/block/rbd.c:2146:8: warning: missing braces around initializer [-Wmissing-braces]
     union rbd_img_fill_iter dummy = { 0 };
           ^
   drivers/block/rbd.c:2146:8: warning: (near initialization for 'dummy.bio_iter') [-Wmissing-braces]
   drivers/block/rbd.c: At top level:
   drivers/block/rbd.c:1973:12: warning: 'rbd_img_request_fill' defined but not used [-Wunused-function]
    static int rbd_img_request_fill(struct rbd_img_request *img_request,
               ^

vim +2146 drivers/block/rbd.c

  2140	
  2141	static int rbd_img_fill_from_bio_nodata(struct rbd_img_request *img_req,
  2142						struct ceph_file_extent *img_extents,
  2143						u32 num_img_extents,
  2144						struct bio *bio)
  2145	{
> 2146		union rbd_img_fill_iter dummy = { 0 };
  2147		struct rbd_img_fill_ctx fctx = {
  2148			.pos_type = OBJ_REQUEST_NODATA,
  2149			.pos = &dummy,
  2150		};
  2151	
  2152		rbd_assert(!bio_has_data(bio));
  2153		return rbd_img_fill_request(img_req, img_extents, num_img_extents,
  2154					    &fctx);
  2155	}
  2156	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux