From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
Date: Sun, 14 Feb 2021 01:55:24 +0800 [thread overview]
Message-ID: <202102140116.pCLPx3RD-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3693 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Vivek Goyal <vgoyal@redhat.com>
CC: Miklos Szeredi <mszeredi@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
CC: Liu Bo <bo.liu@linux.alibaba.com>
CC: Peng Tao <tao.peng@linux.alibaba.com>
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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
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/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33349 bytes --]
next reply other threads:[~2021-02-13 17:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-13 17:55 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-08-31 17:56 fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret' kernel test robot
2021-06-10 3:13 kernel test robot
2021-04-24 18:53 kernel test robot
2020-11-28 19:15 kernel test robot
2020-10-28 11:27 kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202102140116.pCLPx3RD-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.