* [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
@ 2021-05-14 8:54 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-05-14 8:54 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2587 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: i386-randconfig-s002-20210514 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
iwyu warnings: (new ones prefixed by >>)
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
223 static int kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
224 dma_addr_t addr, size_t len)
225 {
> 226 if (addr & KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
227 return -EINVAL;
228
229 if (!len)
230 return 0;
231
232 rctx->dma_list_tail->src_adr = (u32)addr;
233 rctx->dma_list_tail->src_len = (u32)len;
234 rctx->dma_list_tail->ll_flags = 0;
235 rctx->dma_list_tail->nxt_desc = rctx->ll_dma_addr +
236 (virt_to_phys(rctx->dma_list_tail) -
237 virt_to_phys(rctx->dma_list_head)) +
238 sizeof(*rctx->dma_list_tail);
239
240 rctx->dma_list_tail++;
241
242 return 0;
243 }
244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31482 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
@ 2021-08-12 21:56 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-08-12 21:56 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3413 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: h8300-randconfig-s032-20210812 (attached as .config)
compiler: h8300-linux-gcc (GCC) 10.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/crypto/keembay/ drivers/dma/dw-axi-dmac/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:226:53: sparse: sparse: shift too big (32) for type unsigned long
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
223 static int kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
224 dma_addr_t addr, size_t len)
225 {
> 226 if (addr & KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
227 return -EINVAL;
228
229 if (!len)
230 return 0;
231
232 rctx->dma_list_tail->src_adr = (u32)addr;
233 rctx->dma_list_tail->src_len = (u32)len;
234 rctx->dma_list_tail->ll_flags = 0;
235 rctx->dma_list_tail->nxt_desc = rctx->ll_dma_addr +
236 (virt_to_phys(rctx->dma_list_tail) -
237 virt_to_phys(rctx->dma_list_head)) +
238 sizeof(*rctx->dma_list_tail);
239
240 rctx->dma_list_tail++;
241
242 return 0;
243 }
244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22562 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
@ 2021-06-19 17:10 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-06-19 17:10 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2313 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: x86_64-randconfig-s022-20210618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 43665 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
@ 2021-03-03 23:49 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-03-03 23:49 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2505 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: arm64-randconfig-s031-20210303 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-245-gacc5c298-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34880 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
@ 2021-01-27 7:25 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-01-27 7:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3446 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: arm-randconfig-s032-20210127 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-212-g56dbccf5-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:226:53: sparse: sparse: shift too big (32) for type unsigned long
--
>> drivers/crypto/keembay/ocs-hcu.c:389:29: sparse: sparse: shift too big (32) for type unsigned long
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
223 static int kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
224 dma_addr_t addr, size_t len)
225 {
> 226 if (addr & KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
227 return -EINVAL;
228
229 if (!len)
230 return 0;
231
232 rctx->dma_list_tail->src_adr = (u32)addr;
233 rctx->dma_list_tail->src_len = (u32)len;
234 rctx->dma_list_tail->ll_flags = 0;
235 rctx->dma_list_tail->nxt_desc = rctx->ll_dma_addr +
236 (virt_to_phys(rctx->dma_list_tail) -
237 virt_to_phys(rctx->dma_list_head)) +
238 sizeof(*rctx->dma_list_tail);
239
240 rctx->dma_list_tail++;
241
242 return 0;
243 }
244
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23565 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
2020-10-13 8:28 kernel test robot
@ 2020-10-13 8:35 ` Murphy, Declan
0 siblings, 0 replies; 7+ messages in thread
From: Murphy, Declan @ 2020-10-13 8:35 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3304 bytes --]
Hey,
@Alessandrelli, Daniele took over this submission. I'm temporarily on a different project now.
Regards,
Declan
-----Original Message-----
From: lkp <lkp@intel.com>
Sent: Tuesday, October 13, 2020 9:29 AM
To: Murphy, Declan <declan.murphy@intel.com>
Cc: kbuild-all(a)lists.01.org; Li, Yifan2 <yifan2.li@intel.com>
Subject: [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: x86_64-randconfig-s021-20201013 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-rc1-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse:
>> Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
---
0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
@ 2020-10-13 8:28 kernel test robot
2020-10-13 8:35 ` Murphy, Declan
0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2020-10-13 8:28 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2301 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 9b07a958f2eb496c88faf0bd749eb600357f4190 [15/1142] crypto: keembay: Add Keem Bay OCS HCU
config: x86_64-randconfig-s021-20201013 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-rc1-dirty
# https://github.com/intel/linux-intel-lts/commit/9b07a958f2eb496c88faf0bd749eb600357f4190
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 9b07a958f2eb496c88faf0bd749eb600357f4190
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:219:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:749:31: sparse: sparse: Using plain integer as NULL pointer
drivers/crypto/keembay/keembay-ocs-hcu-core.c:750:31: sparse: sparse: Using plain integer as NULL pointer
vim +218 drivers/crypto/keembay/keembay-ocs-hcu-core.c
202
203 static void kmb_ocs_free_dma_list(struct ocs_hcu_rctx *rctx)
204 {
205 struct ocs_hcu_dev *hcu_dev = rctx->hcu_dev;
206 struct device *dev = hcu_dev->dev;
207
208 if (!rctx->dma_list_head || !rctx->dma_list_tail)
209 return;
210
211 if (rctx->sg_dma_nents > 0)
212 dma_unmap_sg(dev, hcu_dev->req->src, rctx->sg_dma_nents,
213 DMA_TO_DEVICE);
214
215 dma_free_coherent(dev, rctx->dma_list_size, rctx->dma_list_head,
216 rctx->ll_dma_addr);
217
> 218 rctx->dma_list_head = 0;
219 rctx->dma_list_tail = 0;
220 rctx->ll_dma_addr = 0;
221 }
222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29737 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-08-12 21:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 8:54 [intel-linux-intel-lts:5.4/yocto 15/1142] drivers/crypto/keembay/keembay-ocs-hcu-core.c:218:31: sparse: sparse: Using plain integer as NULL pointer kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-08-12 21:56 kernel test robot
2021-06-19 17:10 kernel test robot
2021-03-03 23:49 kernel test robot
2021-01-27 7:25 kernel test robot
2020-10-13 8:28 kernel test robot
2020-10-13 8:35 ` Murphy, Declan
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.