2019-03-29 14:12:17 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-10-11 02:06:46 +08:00
|
|
|
From: Mateusz Polrola <mateuszx.potrola@intel.com>
|
|
|
|
Date: Thu, 20 Sep 2018 14:09:37 +0200
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] hyper_dmabuf/virtio: Fixed compilation warnings
|
2018-10-11 02:06:46 +08:00
|
|
|
|
|
|
|
Added missing return in vbs_k_reset.
|
|
|
|
Initialized return value in vbs_k_ioctl.
|
|
|
|
|
|
|
|
Signed-off-by: Mateusz Polrola <mateuszx.potrola@intel.com>
|
|
|
|
---
|
|
|
|
.../dma-buf/hyper_dmabuf/virtio/hyper_dmabuf_virtio_be_drv.c | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/dma-buf/hyper_dmabuf/virtio/hyper_dmabuf_virtio_be_drv.c b/drivers/dma-buf/hyper_dmabuf/virtio/hyper_dmabuf_virtio_be_drv.c
|
2019-03-29 14:12:17 +08:00
|
|
|
index 67c7968..b308d7e 100644
|
2018-10-11 02:06:46 +08:00
|
|
|
--- a/drivers/dma-buf/hyper_dmabuf/virtio/hyper_dmabuf_virtio_be_drv.c
|
|
|
|
+++ b/drivers/dma-buf/hyper_dmabuf/virtio/hyper_dmabuf_virtio_be_drv.c
|
|
|
|
@@ -365,6 +365,8 @@ static int vbs_k_reset(struct virtio_be_priv *priv)
|
|
|
|
virtio_comm_ring_init(&priv->tx_ring,
|
|
|
|
sizeof(struct virtio_be_tx_data),
|
|
|
|
REQ_RING_SIZE);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static long vbs_k_ioctl(struct file *f, unsigned int ioctl,
|
|
|
|
@@ -373,7 +375,7 @@ static long vbs_k_ioctl(struct file *f, unsigned int ioctl,
|
|
|
|
struct virtio_be_priv *priv =
|
|
|
|
(struct virtio_be_priv *) f->private_data;
|
|
|
|
void __user *argp = (void __user *)arg;
|
|
|
|
- int r;
|
|
|
|
+ int r = 0;
|
|
|
|
|
|
|
|
if (priv == NULL) {
|
|
|
|
dev_err(hy_drv_priv->dev,
|
|
|
|
--
|
2019-03-29 14:12:17 +08:00
|
|
|
2.21.0
|
2018-10-11 02:06:46 +08:00
|
|
|
|