mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* include/linux/dmaengine.h:1370:10: warning: 'caps.descriptor_reuse' is used uninitialized in this function
@ 2019-12-05  8:25 kbuild test robot
  2019-12-05 11:54 ` [PATCH] dmaengine: Fix access to uninitialized dma_slave_caps Lukas Wunner
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2019-12-05  8:25 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: kbuild-all, linux-kernel, Mark Brown, Nathan Chancellor

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2f13437b8917627119d163d62f73e7a78a92303a
commit: 8259bf667a0f9ea1a37bb71c7af9ebd550e9251d spi: bcm2835: Speed up TX-only DMA transfers by clearing RX FIFO
date:   3 months ago
config: x86_64-randconfig-s0-20191205 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
        git checkout 8259bf667a0f9ea1a37bb71c7af9ebd550e9251d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/spi/spi-bcm2835.c:19:0:
   drivers/spi/spi-bcm2835.c: In function 'dmaengine_desc_set_reuse':
>> include/linux/dmaengine.h:1370:10: warning: 'caps.descriptor_reuse' is used uninitialized in this function [-Wuninitialized]
     if (caps.descriptor_reuse) {
             ^
--
   In file included from drivers//spi/spi-bcm2835.c:19:0:
   drivers//spi/spi-bcm2835.c: In function 'dmaengine_desc_set_reuse':
>> include/linux/dmaengine.h:1370:10: warning: 'caps.descriptor_reuse' is used uninitialized in this function [-Wuninitialized]
     if (caps.descriptor_reuse) {
             ^

vim +1370 include/linux/dmaengine.h

a8135d0d79e9d0 Peter Ujfalusi 2015-12-14  1363  
272420214d261e Vinod Koul     2015-08-05  1364  static inline int dmaengine_desc_set_reuse(struct dma_async_tx_descriptor *tx)
272420214d261e Vinod Koul     2015-08-05  1365  {
272420214d261e Vinod Koul     2015-08-05  1366  	struct dma_slave_caps caps;
272420214d261e Vinod Koul     2015-08-05  1367  
272420214d261e Vinod Koul     2015-08-05  1368  	dma_get_slave_caps(tx->chan, &caps);
272420214d261e Vinod Koul     2015-08-05  1369  
272420214d261e Vinod Koul     2015-08-05 @1370  	if (caps.descriptor_reuse) {
272420214d261e Vinod Koul     2015-08-05  1371  		tx->flags |= DMA_CTRL_REUSE;
272420214d261e Vinod Koul     2015-08-05  1372  		return 0;
272420214d261e Vinod Koul     2015-08-05  1373  	} else {
272420214d261e Vinod Koul     2015-08-05  1374  		return -EPERM;
272420214d261e Vinod Koul     2015-08-05  1375  	}
272420214d261e Vinod Koul     2015-08-05  1376  }
272420214d261e Vinod Koul     2015-08-05  1377  

:::::: The code at line 1370 was first introduced by commit
:::::: 272420214d261e97f08a4c555defb3924de06ae8 dmaengine: Add DMA_CTRL_REUSE

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-11 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05  8:25 include/linux/dmaengine.h:1370:10: warning: 'caps.descriptor_reuse' is used uninitialized in this function kbuild test robot
2019-12-05 11:54 ` [PATCH] dmaengine: Fix access to uninitialized dma_slave_caps Lukas Wunner
2019-12-11 10:33   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®