[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2305282056200.2875@hadrien>
Date: Sun, 28 May 2023 20:58:27 +0200 (CEST)
From: Julia Lawall <julia.lawall@...ia.fr>
To: linux-kernel@...r.kernel.org, Dave Jiang <dave.jiang@...el.com>
cc: Vinod Koul <vkoul@...nel.org>, Fenghua Yu <fenghua.yu@...el.com>,
linux-kernel@...r.kernel.org
Subject: 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 <lkp@...el.com>
To: oe-kbuild@...ts.linux.dev
Cc: lkp@...el.com, Julia Lawall <julia.lawall@...ia.fr>
Subject: drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in
BCC: lkp@...el.com
CC: oe-kbuild-all@...ts.linux.dev
CC: linux-kernel@...r.kernel.org
TO: Dave Jiang <dave.jiang@...el.com>
CC: Vinod Koul <vkoul@...nel.org>
CC: Fenghua Yu <fenghua.yu@...el.com>
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/202305290109.qddh20pB-lkp@intel.com/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 <lkp@...el.com>
| Reported-by: Julia Lawall <julia.lawall@...ia.fr>
| Closes: https://lore.kernel.org/r/202305290109.qddh20pB-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/dma/idxd/device.c:774:8-26: WARNING: dma_alloc_coherent used in
/*
>> * Address needs to be page aligned. However, dma_alloc_coherent() provides
>> * at minimal page size aligned address. No manual alignment required.
*/
>> addr already zeroes out memory, so memset is not needed
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists