All of lore.kernel.org
 help / color / mirror / Atom feed
* [rw:muse_v1 5/5] fs/fuse/muse.c:113:6: warning: variable 'ret' set but not used
@ 2020-11-19 17:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-19 17:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]

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=d1901f3da6f0b1e1448f26c782f8da52150bc187
        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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 75917 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-19 17:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-19 17:41 [rw:muse_v1 5/5] fs/fuse/muse.c:113:6: warning: variable 'ret' set but not used 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.