All of lore.kernel.org
 help / color / mirror / Atom feed
* [weiny2:tip-pks-v4-5.12-rc 20/23] drivers/dax/super.c:350:7: warning: Unused variable: avail [unusedVariable]
@ 2021-04-08  5:58 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-08  5:58 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/weiny2/linux-kernel.git tip-pks-v4-5.12-rc
head:   b8f2dcd125fa7a88ac29aabf06ff75ee220feb12
commit: 540c4a742db589e1cfba54ce1a26615b234f3790 [20/23] dax: Stray access protection for dax_direct_access()
compiler: sparc64-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)

>> drivers/dax/super.c:350:7: warning: Unused variable: avail [unusedVariable]
    long avail;
         ^

vim +350 drivers/dax/super.c

b0686260fecaa9 Dan Williams 2017-01-26  341  
540c4a742db589 Ira Weiny    2020-06-04  342  /**
540c4a742db589 Ira Weiny    2020-06-04  343   * dax_release_direct_access() - translate a device pgoff to an absolute pfn
540c4a742db589 Ira Weiny    2020-06-04  344   *
540c4a742db589 Ira Weiny    2020-06-04  345   * @dax_dev: a dax_device instance representing the logical memory range
540c4a742db589 Ira Weiny    2020-06-04  346   * @kaddr: virtual address returned from dax_direct_access()
540c4a742db589 Ira Weiny    2020-06-04  347   */
540c4a742db589 Ira Weiny    2020-06-04  348  void dax_release_direct_access(struct dax_device *dax_dev, void *kaddr)
540c4a742db589 Ira Weiny    2020-06-04  349  {
540c4a742db589 Ira Weiny    2020-06-04 @350  	long avail;
540c4a742db589 Ira Weiny    2020-06-04  351  
540c4a742db589 Ira Weiny    2020-06-04  352  	if (!dax_dev || !dax_alive(dax_dev))
540c4a742db589 Ira Weiny    2020-06-04  353  		return;
540c4a742db589 Ira Weiny    2020-06-04  354  
540c4a742db589 Ira Weiny    2020-06-04  355  	if (dax_dev->ops->release_direct_access)
540c4a742db589 Ira Weiny    2020-06-04  356  		dax_dev->ops->release_direct_access(kaddr);
540c4a742db589 Ira Weiny    2020-06-04  357  }
540c4a742db589 Ira Weiny    2020-06-04  358  EXPORT_SYMBOL_GPL(dax_release_direct_access);
540c4a742db589 Ira Weiny    2020-06-04  359  

---
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] 2+ messages in thread

* [weiny2:tip-pks-v4-5.12-rc 20/23] drivers/dax/super.c:350:7: warning: Unused variable: avail [unusedVariable]
@ 2021-04-08  5:53 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-08  5:53 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Ira Weiny <ira.weiny@intel.com>

tree:   https://github.com/weiny2/linux-kernel.git tip-pks-v4-5.12-rc
head:   b8f2dcd125fa7a88ac29aabf06ff75ee220feb12
commit: 540c4a742db589e1cfba54ce1a26615b234f3790 [20/23] dax: Stray access protection for dax_direct_access()
:::::: branch date: 31 hours ago
:::::: commit date: 31 hours ago
compiler: sparc64-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)

>> drivers/dax/super.c:350:7: warning: Unused variable: avail [unusedVariable]
    long avail;
         ^

vim +350 drivers/dax/super.c

b0686260fecaa9 Dan Williams 2017-01-26  341  
540c4a742db589 Ira Weiny    2020-06-04  342  /**
540c4a742db589 Ira Weiny    2020-06-04  343   * dax_release_direct_access() - translate a device pgoff to an absolute pfn
540c4a742db589 Ira Weiny    2020-06-04  344   *
540c4a742db589 Ira Weiny    2020-06-04  345   * @dax_dev: a dax_device instance representing the logical memory range
540c4a742db589 Ira Weiny    2020-06-04  346   * @kaddr: virtual address returned from dax_direct_access()
540c4a742db589 Ira Weiny    2020-06-04  347   */
540c4a742db589 Ira Weiny    2020-06-04  348  void dax_release_direct_access(struct dax_device *dax_dev, void *kaddr)
540c4a742db589 Ira Weiny    2020-06-04  349  {
540c4a742db589 Ira Weiny    2020-06-04 @350  	long avail;
540c4a742db589 Ira Weiny    2020-06-04  351  
540c4a742db589 Ira Weiny    2020-06-04  352  	if (!dax_dev || !dax_alive(dax_dev))
540c4a742db589 Ira Weiny    2020-06-04  353  		return;
540c4a742db589 Ira Weiny    2020-06-04  354  
540c4a742db589 Ira Weiny    2020-06-04  355  	if (dax_dev->ops->release_direct_access)
540c4a742db589 Ira Weiny    2020-06-04  356  		dax_dev->ops->release_direct_access(kaddr);
540c4a742db589 Ira Weiny    2020-06-04  357  }
540c4a742db589 Ira Weiny    2020-06-04  358  EXPORT_SYMBOL_GPL(dax_release_direct_access);
540c4a742db589 Ira Weiny    2020-06-04  359  

---
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] 2+ messages in thread

end of thread, other threads:[~2021-04-08  5:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08  5:58 [weiny2:tip-pks-v4-5.12-rc 20/23] drivers/dax/super.c:350:7: warning: Unused variable: avail [unusedVariable] kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-04-08  5:53 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.