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

Xiong Weimin <[email protected]>
Newsgroups org.kernel.vger.linux-kernel,dev.linux.lists.virtualization
Message-ID <[email protected]>
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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.