All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 13725/14034] fs/io_uring.c:9408:6: warning: Unused variable: ret
@ 2020-12-29  5:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-29  5:22 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Pavel Begunkov <asml.silence@gmail.com>
CC: Jens Axboe <axboe@kernel.dk>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d7a03a44a5e93f39ece70ec75d25c6088caa0fdb
commit: efc2519f427b09ecdfc5ee722025da5e01a9b58d [13725/14034] io_uring: fix double io_uring free
:::::: branch date: 6 days ago
:::::: commit date: 7 days ago
compiler: nds32le-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>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

         ^
   fs/io_uring.c:8429:7: note: Variable 'ret' is reassigned a value before the old one has been used.
     ret = 0;
         ^
>> fs/io_uring.c:9408:6: warning: Unused variable: ret [unusedVariable]
    int ret;
        ^

vim +9408 fs/io_uring.c

efc2519f427b09e Pavel Begunkov 2020-12-21  9398  
2b188cc1bb857a9 Jens Axboe     2019-01-07  9399  /*
2b188cc1bb857a9 Jens Axboe     2019-01-07  9400   * Allocate an anonymous fd, this is what constitutes the application
2b188cc1bb857a9 Jens Axboe     2019-01-07  9401   * visible backing of an io_uring instance. The application mmaps this
2b188cc1bb857a9 Jens Axboe     2019-01-07  9402   * fd to gain access to the SQ/CQ ring details. If UNIX sockets are enabled,
2b188cc1bb857a9 Jens Axboe     2019-01-07  9403   * we have to tie this fd to a socket for file garbage collection purposes.
2b188cc1bb857a9 Jens Axboe     2019-01-07  9404   */
efc2519f427b09e Pavel Begunkov 2020-12-21  9405  static struct file *io_uring_get_file(struct io_ring_ctx *ctx)
2b188cc1bb857a9 Jens Axboe     2019-01-07  9406  {
2b188cc1bb857a9 Jens Axboe     2019-01-07  9407  	struct file *file;
2b188cc1bb857a9 Jens Axboe     2019-01-07 @9408  	int ret;
2b188cc1bb857a9 Jens Axboe     2019-01-07  9409  

:::::: The code at line 9408 was first introduced by commit
:::::: 2b188cc1bb857a9d4701ae59aa7768b5124e262e Add io_uring IO interface

:::::: TO: Jens Axboe <axboe@kernel.dk>
:::::: CC: Jens Axboe <axboe@kernel.dk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

only message in thread, other threads:[~2020-12-29  5:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29  5:22 [linux-next:master 13725/14034] fs/io_uring.c:9408:6: warning: Unused variable: ret 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.