Content-Type: multipart/mixed; boundary="===============5333408894828817448==" MIME-Version: 1.0 From: Parav Pandit To: kbuild-all@lists.01.org Subject: [PATCH] vdpa: Consider device id larger than 31 Date: Thu, 25 Nov 2021 20:09:15 +0200 Message-ID: <20211125180915.649652-1-parav@nvidia.com> List-Id: --===============5333408894828817448== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable virtio device id value can be more than 31. Hence, use BIT_ULL in assignment. Fixes: 33b347503f01 ("vdpa: Define vdpa mgmt device, ops and a netlink inte= rface") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Parav Pandit --- drivers/vdpa/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa.c b/drivers/vdpa/vdpa.c index 7332a74a4b00..e91c71aeeddf 100644 --- a/drivers/vdpa/vdpa.c +++ b/drivers/vdpa/vdpa.c @@ -404,7 +404,7 @@ static int vdpa_mgmtdev_fill(const struct vdpa_mgmt_dev= *mdev, struct sk_buff *m goto msg_err; = while (mdev->id_table[i].device) { - supported_classes |=3D BIT(mdev->id_table[i].device); + supported_classes |=3D BIT_ULL(mdev->id_table[i].device); i++; } = -- = 2.26.2 --===============5333408894828817448==--