All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 10147/11937] drivers/dma-buf/st-dma-resv.c:58 sanitycheck() warn: inconsistent returns '&resv'.
@ 2021-10-27 12:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-27 12:44 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: "Christian König" <christian.koenig@amd.com>
CC: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
CC: Daniel Vetter <daniel.vetter@ffwll.ch>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ae5179317e794160e471db0e122c6ac811a97235
commit: 1d51775cd3f51899ce85afab686c7f641ff32d4e [10147/11937] dma-buf: add dma_resv selftest v4
:::::: branch date: 2 hours ago
:::::: commit date: 5 days ago
config: openrisc-randconfig-m031-20211027 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.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:
drivers/dma-buf/st-dma-resv.c:58 sanitycheck() warn: inconsistent returns '&resv'.
drivers/dma-buf/st-dma-resv.c:336 test_get_fences() error: uninitialized symbol 'i'.

vim +58 drivers/dma-buf/st-dma-resv.c

1d51775cd3f518 Christian König 2021-09-24  37  
1d51775cd3f518 Christian König 2021-09-24  38  static int sanitycheck(void *arg)
1d51775cd3f518 Christian König 2021-09-24  39  {
1d51775cd3f518 Christian König 2021-09-24  40  	struct dma_resv resv;
1d51775cd3f518 Christian König 2021-09-24  41  	struct dma_fence *f;
1d51775cd3f518 Christian König 2021-09-24  42  	int r;
1d51775cd3f518 Christian König 2021-09-24  43  
1d51775cd3f518 Christian König 2021-09-24  44  	f = alloc_fence();
1d51775cd3f518 Christian König 2021-09-24  45  	if (!f)
1d51775cd3f518 Christian König 2021-09-24  46  		return -ENOMEM;
1d51775cd3f518 Christian König 2021-09-24  47  
1d51775cd3f518 Christian König 2021-09-24  48  	dma_fence_signal(f);
1d51775cd3f518 Christian König 2021-09-24  49  	dma_fence_put(f);
1d51775cd3f518 Christian König 2021-09-24  50  
1d51775cd3f518 Christian König 2021-09-24  51  	dma_resv_init(&resv);
1d51775cd3f518 Christian König 2021-09-24  52  	r = dma_resv_lock(&resv, NULL);
1d51775cd3f518 Christian König 2021-09-24  53  	if (r)
1d51775cd3f518 Christian König 2021-09-24  54  		pr_err("Resv locking failed\n");
1d51775cd3f518 Christian König 2021-09-24  55  	else
1d51775cd3f518 Christian König 2021-09-24  56  		dma_resv_unlock(&resv);
1d51775cd3f518 Christian König 2021-09-24  57  	dma_resv_fini(&resv);
1d51775cd3f518 Christian König 2021-09-24 @58  	return r;
1d51775cd3f518 Christian König 2021-09-24  59  }
1d51775cd3f518 Christian König 2021-09-24  60  

---
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: 29086 bytes --]

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

only message in thread, other threads:[~2021-10-27 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 12:44 [linux-next:master 10147/11937] drivers/dma-buf/st-dma-resv.c:58 sanitycheck() warn: inconsistent returns '&resv' 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.