* fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
@ 2021-02-13 17:55 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-02-13 17:55 UTC (permalink / raw)
To: kbuild
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
@ 2021-08-31 17:56 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-08-31 17:56 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3870 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: b91db6a0b52e019b6bdabea3f1dbe36d85c7e52c
commit: c2d0ad00d948de73c78f05d2b3e5bdfa605035cc virtiofs: implement dax read/write operations
date: 12 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 12 months ago
config: x86_64-randconfig-m031-20210831 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 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'.
fs/fuse/dax.c:514 fuse_dax_read_iter() warn: inconsistent returns '&inode->i_rwsem'.
fs/fuse/dax.c:575 fuse_dax_write_iter() warn: inconsistent returns '&inode->i_rwsem'.
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: 34892 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
@ 2021-06-10 3:13 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-06-10 3:13 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3694 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: cd1245d75ce93b8fd206f4b34eb58bcfe156d5e9
commit: c2d0ad00d948de73c78f05d2b3e5bdfa605035cc virtiofs: implement dax read/write operations
date: 9 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 9 months ago
config: x86_64-randconfig-m001-20210610 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 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: 32952 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
@ 2021-04-24 18:53 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-04-24 18:53 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3695 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: 8db5efb83fa99e81c3f8dee92a6589b251f117f3
commit: c2d0ad00d948de73c78f05d2b3e5bdfa605035cc virtiofs: implement dax read/write operations
date: 8 months ago
:::::: branch date: 19 hours ago
:::::: commit date: 8 months ago
config: x86_64-randconfig-m001-20210425 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 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: 38464 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
@ 2020-11-28 19:15 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-11-28 19:15 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3732 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: c84e1efae022071a4fcf9f1899bf71777c49943a
commit: c2d0ad00d948de73c78f05d2b3e5bdfa605035cc virtiofs: implement dax read/write operations
date: 3 months ago
:::::: branch date: 20 hours ago
:::::: commit date: 3 months ago
config: x86_64-randconfig-m001-20201129 (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
c2d0ad00d948de7 Vivek Goyal 2020-08-19 163
c2d0ad00d948de7 Vivek Goyal 2020-08-19 164 static int dmap_removemapping_list(struct inode *inode, unsigned int num,
c2d0ad00d948de7 Vivek Goyal 2020-08-19 165 struct list_head *to_remove)
c2d0ad00d948de7 Vivek Goyal 2020-08-19 166 {
c2d0ad00d948de7 Vivek Goyal 2020-08-19 167 struct fuse_removemapping_one *remove_one, *ptr;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 168 struct fuse_removemapping_in inarg;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 169 struct fuse_dax_mapping *dmap;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 170 int ret, i = 0, nr_alloc;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 171
c2d0ad00d948de7 Vivek Goyal 2020-08-19 172 nr_alloc = min_t(unsigned int, num, FUSE_REMOVEMAPPING_MAX_ENTRY);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 173 remove_one = kmalloc_array(nr_alloc, sizeof(*remove_one), GFP_NOFS);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 174 if (!remove_one)
c2d0ad00d948de7 Vivek Goyal 2020-08-19 175 return -ENOMEM;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 176
c2d0ad00d948de7 Vivek Goyal 2020-08-19 177 ptr = remove_one;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 178 list_for_each_entry(dmap, to_remove, list) {
c2d0ad00d948de7 Vivek Goyal 2020-08-19 179 ptr->moffset = dmap->window_offset;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 180 ptr->len = dmap->length;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 181 ptr++;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 182 i++;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 183 num--;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 184 if (i >= nr_alloc || num == 0) {
c2d0ad00d948de7 Vivek Goyal 2020-08-19 185 memset(&inarg, 0, sizeof(inarg));
c2d0ad00d948de7 Vivek Goyal 2020-08-19 186 inarg.count = i;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 187 ret = fuse_send_removemapping(inode, &inarg,
c2d0ad00d948de7 Vivek Goyal 2020-08-19 188 remove_one);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 189 if (ret)
c2d0ad00d948de7 Vivek Goyal 2020-08-19 190 goto out;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 191 ptr = remove_one;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 192 i = 0;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 193 }
c2d0ad00d948de7 Vivek Goyal 2020-08-19 194 }
c2d0ad00d948de7 Vivek Goyal 2020-08-19 195 out:
c2d0ad00d948de7 Vivek Goyal 2020-08-19 196 kfree(remove_one);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 @197 return ret;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 198 }
c2d0ad00d948de7 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: 37143 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret'.
@ 2020-10-28 11:27 kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-10-28 11:27 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3725 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: ed8780e3f2ecc82645342d070c6b4e530532e680
commit: c2d0ad00d948de73c78f05d2b3e5bdfa605035cc virtiofs: implement dax read/write operations
date: 7 weeks ago
:::::: branch date: 14 hours ago
:::::: commit date: 7 weeks ago
config: s390-randconfig-m031-20201028 (attached as .config)
compiler: s390-linux-gcc (GCC) 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
c2d0ad00d948de7 Vivek Goyal 2020-08-19 163
c2d0ad00d948de7 Vivek Goyal 2020-08-19 164 static int dmap_removemapping_list(struct inode *inode, unsigned int num,
c2d0ad00d948de7 Vivek Goyal 2020-08-19 165 struct list_head *to_remove)
c2d0ad00d948de7 Vivek Goyal 2020-08-19 166 {
c2d0ad00d948de7 Vivek Goyal 2020-08-19 167 struct fuse_removemapping_one *remove_one, *ptr;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 168 struct fuse_removemapping_in inarg;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 169 struct fuse_dax_mapping *dmap;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 170 int ret, i = 0, nr_alloc;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 171
c2d0ad00d948de7 Vivek Goyal 2020-08-19 172 nr_alloc = min_t(unsigned int, num, FUSE_REMOVEMAPPING_MAX_ENTRY);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 173 remove_one = kmalloc_array(nr_alloc, sizeof(*remove_one), GFP_NOFS);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 174 if (!remove_one)
c2d0ad00d948de7 Vivek Goyal 2020-08-19 175 return -ENOMEM;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 176
c2d0ad00d948de7 Vivek Goyal 2020-08-19 177 ptr = remove_one;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 178 list_for_each_entry(dmap, to_remove, list) {
c2d0ad00d948de7 Vivek Goyal 2020-08-19 179 ptr->moffset = dmap->window_offset;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 180 ptr->len = dmap->length;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 181 ptr++;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 182 i++;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 183 num--;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 184 if (i >= nr_alloc || num == 0) {
c2d0ad00d948de7 Vivek Goyal 2020-08-19 185 memset(&inarg, 0, sizeof(inarg));
c2d0ad00d948de7 Vivek Goyal 2020-08-19 186 inarg.count = i;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 187 ret = fuse_send_removemapping(inode, &inarg,
c2d0ad00d948de7 Vivek Goyal 2020-08-19 188 remove_one);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 189 if (ret)
c2d0ad00d948de7 Vivek Goyal 2020-08-19 190 goto out;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 191 ptr = remove_one;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 192 i = 0;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 193 }
c2d0ad00d948de7 Vivek Goyal 2020-08-19 194 }
c2d0ad00d948de7 Vivek Goyal 2020-08-19 195 out:
c2d0ad00d948de7 Vivek Goyal 2020-08-19 196 kfree(remove_one);
c2d0ad00d948de7 Vivek Goyal 2020-08-19 @197 return ret;
c2d0ad00d948de7 Vivek Goyal 2020-08-19 198 }
c2d0ad00d948de7 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: 23603 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-08-31 17:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-13 17:55 fs/fuse/dax.c:197 dmap_removemapping_list() error: uninitialized symbol 'ret' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-08-31 17:56 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
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.