drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in (fwd)
The warning suggests that the memset in idxd_device_evl_setup may not be needed. There is a possibility of allocation via function pointer, though, in dma_alloc_attrs, so I don't know what the possibilities are in this case.
julia
---------- Forwarded message ----------
Date: Mon, 29 May 2023 01:34:17 +0800
From: kernel test robot <[email protected]>
To: [email protected]
Cc: [email protected], Julia Lawall <[email protected]>
Subject: drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in
BCC: [email protected]
CC: [email protected]
CC: [email protected]
TO: Dave Jiang <[email protected]>
CC: Vinod Koul <[email protected]>
CC: Fenghua Yu <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7877cb91f1081754a1487c144d85dc0d2e2e7fc4 commit: 244da66cda359227d80ccb41dbcb99da40eae186 dmaengine: idxd: setup event log configuration date: 7 weeks ago
:::::: branch date: 6 hours ago
:::::: commit date: 7 weeks ago
config: x86_64-randconfig-c022-20230528 (https://download.01.org/0day-ci/archive/20230529/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]> | Reported-by: Julia Lawall <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/
cocci warnings: (new ones prefixed by >>)
Quoted 1 line
Quoted 1 line
drivers/dma/idxd/device.c:774:8-26: WARNING:
dma_alloc_coherentused in
/*
Quoted 2 lines
Quoted 2 lines
* Address needs to be page aligned. However,
dma_alloc_coherent()provides
* at minimal page size aligned address. No manual alignment required.
*/
Quoted 1 line
Quoted 1 line
addr already zeroes out memory, so memset is not needed
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki