tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: c38cc0a3be12e5c70b9a2a015cbee44014a52518 commit: 0299853c014aa0eecf7fb85ac2f1ebd0a9a6ba73 [21846/21850] dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240313/202403130014.Z6L6BJzl-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240313/202403130014.Z6L6BJzl-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202403130014.Z6L6BJzl-lkp@intel.com/
Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
In function 'fill_px', inlined from 'pl330_prep_dma_cyclic' at drivers/dma/pl330.c:2716:3:
drivers/dma/pl330.c:2598:22: warning: 'dst' may be used uninitialized [-Wmaybe-uninitialized]
2598 | px->dst_addr = dst; | ~~~~~~~~~~~~~^~~~~ drivers/dma/pl330.c: In function 'pl330_prep_dma_cyclic': drivers/dma/pl330.c:2656:20: note: 'dst' was declared here 2656 | dma_addr_t dst; | ^~~ In function 'fill_px', inlined from 'pl330_prep_dma_cyclic' at drivers/dma/pl330.c:2716:3:
drivers/dma/pl330.c:2599:22: warning: 'src' may be used uninitialized [-Wmaybe-uninitialized]
2599 | px->src_addr = src; | ~~~~~~~~~~~~~^~~~~ drivers/dma/pl330.c: In function 'pl330_prep_dma_cyclic': drivers/dma/pl330.c:2657:20: note: 'src' was declared here 2657 | dma_addr_t src; | ^~~ drivers/dma/pl330.c:297: warning: cannot understand function prototype: 'struct pl330_reqcfg '
vim +/dst +2598 drivers/dma/pl330.c
b3040e40675ec2 Jassi Brar 2010-05-23 2593 b3040e40675ec2 Jassi Brar 2010-05-23 2594 static inline void fill_px(struct pl330_xfer *px, b3040e40675ec2 Jassi Brar 2010-05-23 2595 dma_addr_t dst, dma_addr_t src, size_t len) b3040e40675ec2 Jassi Brar 2010-05-23 2596 { b3040e40675ec2 Jassi Brar 2010-05-23 2597 px->bytes = len; b3040e40675ec2 Jassi Brar 2010-05-23 @2598 px->dst_addr = dst; b3040e40675ec2 Jassi Brar 2010-05-23 @2599 px->src_addr = src; b3040e40675ec2 Jassi Brar 2010-05-23 2600 } b3040e40675ec2 Jassi Brar 2010-05-23 2601
:::::: The code at line 2598 was first introduced by commit :::::: b3040e40675ec2c43542331cd30d4ee3dae797e8 DMA: PL330: Add dma api driver
:::::: TO: Jassi Brar jassi.brar@samsung.com :::::: CC: Dan Williams dan.j.williams@intel.com