CC: [email protected] CC: [email protected] TO: Vivek Goyal <[email protected]> CC: Miklos Szeredi <[email protected]> CC: Stefan Hajnoczi <[email protected]> CC: "Dr. David Alan Gilbert" <[email protected]> CC: Liu Bo <[email protected]> CC: Peng Tao <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749 commit: c2d0ad00d948de73c78f05d2b3e5bdfa605035cc virtiofs: implement dax read/write operations date: 5 months ago :::::: branch date: 2 days ago :::::: commit date: 5 months ago config: x86_64-randconfig-m001-20210214 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'. vim +/ret +197 fs/fuse/dax.c c2d0ad00d948de Vivek Goyal 2020-08-19 163 c2d0ad00d948de Vivek Goyal 2020-08-19 164 static int dmap_removemapping_list(struct inode *inode, unsigned int num, c2d0ad00d948de Vivek Goyal 2020-08-19 165 struct list_head *to_remove) c2d0ad00d948de Vivek Goyal 2020-08-19 166 { c2d0ad00d948de Vivek Goyal 2020-08-19 167 struct fuse_removemapping_one *remove_one, *ptr; c2d0ad00d948de Vivek Goyal 2020-08-19 168 struct fuse_removemapping_in inarg; c2d0ad00d948de Vivek Goyal 2020-08-19 169 struct fuse_dax_mapping *dmap; c2d0ad00d948de Vivek Goyal 2020-08-19 170 int ret, i = 0, nr_alloc; c2d0ad00d948de Vivek Goyal 2020-08-19 171 c2d0ad00d948de Vivek Goyal 2020-08-19 172 nr_alloc = min_t(unsigned int, num, FUSE_REMOVEMAPPING_MAX_ENTRY); c2d0ad00d948de Vivek Goyal 2020-08-19 173 remove_one = kmalloc_array(nr_alloc, sizeof(*remove_one), GFP_NOFS); c2d0ad00d948de Vivek Goyal 2020-08-19 174 if (!remove_one) c2d0ad00d948de Vivek Goyal 2020-08-19 175 return -ENOMEM; c2d0ad00d948de Vivek Goyal 2020-08-19 176 c2d0ad00d948de Vivek Goyal 2020-08-19 177 ptr = remove_one; c2d0ad00d948de Vivek Goyal 2020-08-19 178 list_for_each_entry(dmap, to_remove, list) { c2d0ad00d948de Vivek Goyal 2020-08-19 179 ptr->moffset = dmap->window_offset; c2d0ad00d948de Vivek Goyal 2020-08-19 180 ptr->len = dmap->length; c2d0ad00d948de Vivek Goyal 2020-08-19 181 ptr++; c2d0ad00d948de Vivek Goyal 2020-08-19 182 i++; c2d0ad00d948de Vivek Goyal 2020-08-19 183 num--; c2d0ad00d948de Vivek Goyal 2020-08-19 184 if (i >= nr_alloc || num == 0) { c2d0ad00d948de Vivek Goyal 2020-08-19 185 memset(&inarg, 0, sizeof(inarg)); c2d0ad00d948de Vivek Goyal 2020-08-19 186 inarg.count = i; c2d0ad00d948de Vivek Goyal 2020-08-19 187 ret = fuse_send_removemapping(inode, &inarg, c2d0ad00d948de Vivek Goyal 2020-08-19 188 remove_one); c2d0ad00d948de Vivek Goyal 2020-08-19 189 if (ret) c2d0ad00d948de Vivek Goyal 2020-08-19 190 goto out; c2d0ad00d948de Vivek Goyal 2020-08-19 191 ptr = remove_one; c2d0ad00d948de Vivek Goyal 2020-08-19 192 i = 0; c2d0ad00d948de Vivek Goyal 2020-08-19 193 } c2d0ad00d948de Vivek Goyal 2020-08-19 194 } c2d0ad00d948de Vivek Goyal 2020-08-19 195 out: c2d0ad00d948de Vivek Goyal 2020-08-19 196 kfree(remove_one); c2d0ad00d948de Vivek Goyal 2020-08-19 @197 return ret; c2d0ad00d948de Vivek Goyal 2020-08-19 198 } c2d0ad00d948de Vivek Goyal 2020-08-19 199 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
