]> git.baikalelectronics.ru Git - kernel.git/commit
vduse: Fix returning wrong type in vduse_domain_alloc_iova()
authorXie Yongji <xieyongji@bytedance.com>
Fri, 21 Jan 2022 08:39:39 +0000 (16:39 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 4 Mar 2022 16:56:34 +0000 (11:56 -0500)
commitd01beadc70462e0ecbe275b76ebde91636bfa1ad
tree18480671daf70bc912b39ae7747e07c54f1276b3
parent7a67bd25f3fd61e1635db8bf7f56030e59bb9b87
vduse: Fix returning wrong type in vduse_domain_alloc_iova()

This fixes the following smatch warnings:

drivers/vdpa/vdpa_user/iova_domain.c:305 vduse_domain_alloc_iova() warn: should 'iova_pfn << shift' be a 64 bit type?

Fixes: 3e5f14ad833d ("vduse: Implement an MMU-based software IOTLB")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20220121083940.102-1-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa_user/iova_domain.c