Commit bd6dc8f6 authored by Sudeep Dutt's avatar Sudeep Dutt Committed by Greg Kroah-Hartman

misc: mic: Change mic_notify(...) to return true.

virtqueue_{kick()/notify()} methods are required to return bool due to
API changes introduced in commit 5b1bf7cb.
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: default avatarSudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6ce4eac1
...@@ -187,11 +187,12 @@ static void mic_reset(struct virtio_device *vdev) ...@@ -187,11 +187,12 @@ static void mic_reset(struct virtio_device *vdev)
/* /*
* The virtio_ring code calls this API when it wants to notify the Host. * The virtio_ring code calls this API when it wants to notify the Host.
*/ */
static void mic_notify(struct virtqueue *vq) static bool mic_notify(struct virtqueue *vq)
{ {
struct mic_vdev *mvdev = vq->priv; struct mic_vdev *mvdev = vq->priv;
mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db);
return true;
} }
static void mic_del_vq(struct virtqueue *vq, int n) static void mic_del_vq(struct virtqueue *vq, int n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment