tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rw/misc.git muse_v1
head: d1901f3da6f0b1e1448f26c782f8da52150bc187
commit: d1901f3da6f0b1e1448f26c782f8da52150bc187 [5/5] fuse: Implement MUSE: MTD in
userspace
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/rw/misc.git/commit/?id=d1...
git remote add rw
https://git.kernel.org/pub/scm/linux/kernel/git/rw/misc.git
git fetch --no-tags rw muse_v1
git checkout d1901f3da6f0b1e1448f26c782f8da52150bc187
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/fuse/muse.c: In function 'muse_mtd_read':
> fs/fuse/muse.c:113:6: warning: variable 'ret' set but not
used [-Wunused-but-set-variable]
113 | int ret;
| ^~~
fs/fuse/muse.c: In function 'muse_mtd_write':
fs/fuse/muse.c:132:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
132 | int ret;
| ^~~
vim +/ret +113 fs/fuse/muse.c
104
105 static int muse_mtd_read(struct mtd_info *mtd, loff_t from, size_t len,
106 size_t *retlen, u_char *buf)
107 {
108 struct kvec iov = { .iov_base = buf, .iov_len = len };
109 struct muse_conn *mc = mtd->priv;
110 struct kiocb kiocb;
111 struct iov_iter to;
112 loff_t pos = from;
113 int ret;
114
115 iov_iter_kvec(&to, READ, &iov, 1, len);
116 init_sync_kiocb(&kiocb, mc->dummy_file);
117
118 ret = do_dio(&kiocb, &to, &pos, FUSE_DIO_NOFS);
119
120 *retlen = len;
121 return len;
122 }
123
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org