CC: [email protected]
TO: Declan Murphy <[email protected]>
CC: "Li, Yifan" <[email protected]>

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
:::::: branch date: 11 months ago
:::::: commit date: 11 months ago
config: i386-randconfig-m021-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/crypto/keembay/keembay-ocs-hcu-core.c:226 kmb_ocs_add_dma_tail() warn: 
impossible condition '(addr > (((((1))) << (32)) - 1)) => (0-u32max > u32max)'
drivers/crypto/keembay/ocs-hcu.c:389 ocs_hcu_ll_dma_start() warn: impossible 
condition '(head > (((((1))) << (32)) - 1)) => (0-u32max > u32max)'

vim +226 drivers/crypto/keembay/keembay-ocs-hcu-core.c

9b07a958f2eb49 Declan Murphy 2020-05-26  222  
9b07a958f2eb49 Declan Murphy 2020-05-26  223  static int 
kmb_ocs_add_dma_tail(struct ocs_hcu_rctx *rctx,
9b07a958f2eb49 Declan Murphy 2020-05-26  224                            
dma_addr_t addr, size_t len)
9b07a958f2eb49 Declan Murphy 2020-05-26  225  {
9b07a958f2eb49 Declan Murphy 2020-05-26 @226    if (addr & 
KMB_OCS_HCU_ALIGN_MASK || addr > OCS_HCU_DMA_MAX_ADDR_MASK)
9b07a958f2eb49 Declan Murphy 2020-05-26  227            return -EINVAL;
9b07a958f2eb49 Declan Murphy 2020-05-26  228  
9b07a958f2eb49 Declan Murphy 2020-05-26  229    if (!len)
9b07a958f2eb49 Declan Murphy 2020-05-26  230            return 0;
9b07a958f2eb49 Declan Murphy 2020-05-26  231  
9b07a958f2eb49 Declan Murphy 2020-05-26  232    rctx->dma_list_tail->src_adr = 
(u32)addr;
9b07a958f2eb49 Declan Murphy 2020-05-26  233    rctx->dma_list_tail->src_len = 
(u32)len;
9b07a958f2eb49 Declan Murphy 2020-05-26  234    rctx->dma_list_tail->ll_flags = 
0;
9b07a958f2eb49 Declan Murphy 2020-05-26  235    rctx->dma_list_tail->nxt_desc = 
rctx->ll_dma_addr +
9b07a958f2eb49 Declan Murphy 2020-05-26  236                                    
(virt_to_phys(rctx->dma_list_tail) -
9b07a958f2eb49 Declan Murphy 2020-05-26  237                                    
virt_to_phys(rctx->dma_list_head)) +
9b07a958f2eb49 Declan Murphy 2020-05-26  238                                    
sizeof(*rctx->dma_list_tail);
9b07a958f2eb49 Declan Murphy 2020-05-26  239  
9b07a958f2eb49 Declan Murphy 2020-05-26  240    rctx->dma_list_tail++;
9b07a958f2eb49 Declan Murphy 2020-05-26  241  
9b07a958f2eb49 Declan Murphy 2020-05-26  242    return 0;
9b07a958f2eb49 Declan Murphy 2020-05-26  243  }
9b07a958f2eb49 Declan Murphy 2020-05-26  244  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to