CC: [email protected]
CC: [email protected]
TO: Eli Cohen <[email protected]>
CC: "Michael S. Tsirkin" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   902e7f373fff2476b53824264c12e4e76c7ec02a
commit: 710eb8e32d04714452759f2b66884bfa7e97d495 vdpa/mlx5: Fix memory key MTT 
population
date:   7 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 7 months ago
config: i386-randconfig-m021-20210804 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.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]>

New smatch warnings:
drivers/vdpa/mlx5/core/mr.c:46 populate_mtts() warn: should '(((1))) << 
(mr->log_size)' be a 64 bit type?
drivers/vdpa/mlx5/core/mr.c:46 populate_mtts() warn: should '(((1))) << 
(mr->log_size)' be a 64 bit type?

Old smatch warnings:
drivers/vdpa/mlx5/core/mr.c:277 map_direct_mr() warn: missing error code 'err'

vim +46 drivers/vdpa/mlx5/core/mr.c

94abbccdf2916c Eli Cohen 2020-08-04  33  
94abbccdf2916c Eli Cohen 2020-08-04  34  static void populate_mtts(struct 
mlx5_vdpa_direct_mr *mr, __be64 *mtt)
94abbccdf2916c Eli Cohen 2020-08-04  35  {
94abbccdf2916c Eli Cohen 2020-08-04  36         struct scatterlist *sg;
710eb8e32d0471 Eli Cohen 2021-01-07  37         int nsg = mr->nsg;
710eb8e32d0471 Eli Cohen 2021-01-07  38         u64 dma_addr;
710eb8e32d0471 Eli Cohen 2021-01-07  39         u64 dma_len;
710eb8e32d0471 Eli Cohen 2021-01-07  40         int j = 0;
94abbccdf2916c Eli Cohen 2020-08-04  41         int i;
94abbccdf2916c Eli Cohen 2020-08-04  42  
710eb8e32d0471 Eli Cohen 2021-01-07  43         for_each_sg(mr->sg_head.sgl, 
sg, mr->nent, i) {
710eb8e32d0471 Eli Cohen 2021-01-07  44                 for (dma_addr = 
sg_dma_address(sg), dma_len = sg_dma_len(sg);
710eb8e32d0471 Eli Cohen 2021-01-07  45                      nsg && dma_len;
710eb8e32d0471 Eli Cohen 2021-01-07 @46                      nsg--, dma_addr += 
BIT(mr->log_size), dma_len -= BIT(mr->log_size))
710eb8e32d0471 Eli Cohen 2021-01-07  47                         mtt[j++] = 
cpu_to_be64(dma_addr);
710eb8e32d0471 Eli Cohen 2021-01-07  48         }
94abbccdf2916c Eli Cohen 2020-08-04  49  }
94abbccdf2916c Eli Cohen 2020-08-04  50  

---
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