[PATCH] vdpa/virtio_pci: use dev_err for vq notify map failure

From: Xiong Weimin

Date: Thu Aug 06 2026 - 21:58:33 EST


Mapping failure on the device add path is a hard error and already
returns -EINVAL. Use dev_err() to match that, same as pds_vdpa.

Signed-off-by: Xiong Weimin <xiongweimin@xxxxxxxxxx>
---
drivers/vdpa/virtio_pci/vp_vdpa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vdpa/virtio_pci/vp_vdpa.c b/drivers/vdpa/virtio_pci/vp_vdpa.c
index 51ffc245a..26841f03b 100644
--- a/drivers/vdpa/virtio_pci/vp_vdpa.c
+++ b/drivers/vdpa/virtio_pci/vp_vdpa.c
@@ -562,7 +562,7 @@ static int vp_vdpa_dev_add(struct vdpa_mgmt_dev *v_mdev, const char *name,
&vp_vdpa->vring[i].notify_pa);
if (!vp_vdpa->vring[i].notify) {
ret = -EINVAL;
- dev_warn(&pdev->dev, "Fail to map vq notify %d\n", i);
+ dev_err(&pdev->dev, "Fail to map vq notify %d\n", i);
goto err;
}
}
--
2.43.0