ddf19c
From 624d96c456536e1471968a59fbeea206309cc33b Mon Sep 17 00:00:00 2001
ddf19c
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ddf19c
Date: Fri, 24 Jan 2020 19:46:13 +0100
ddf19c
Subject: [PATCH 004/116] vhost: coding style fix
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Message-id: <20200124194613.41119-4-dgilbert@redhat.com>
ddf19c
Patchwork-id: 93453
ddf19c
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 3/3] vhost: coding style fix
ddf19c
Bugzilla: 1779041
ddf19c
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
ddf19c
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
ddf19c
From: "Michael S. Tsirkin" <mst@redhat.com>
ddf19c
ddf19c
Drop a trailing whitespace. Make line shorter.
ddf19c
ddf19c
Fixes: 76525114736e8 ("vhost: Only align sections for vhost-user")
ddf19c
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
ddf19c
(cherry picked from commit 8347505640238d3b80f9bb7510fdc1bb574bad19)
ddf19c
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ddf19c
---
ddf19c
 hw/virtio/vhost.c | 6 +++---
ddf19c
 1 file changed, 3 insertions(+), 3 deletions(-)
ddf19c
ddf19c
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
ddf19c
index 25fd469..9edfadc 100644
ddf19c
--- a/hw/virtio/vhost.c
ddf19c
+++ b/hw/virtio/vhost.c
ddf19c
@@ -551,7 +551,7 @@ static void vhost_region_add_section(struct vhost_dev *dev,
ddf19c
     trace_vhost_region_add_section(section->mr->name, mrs_gpa, mrs_size,
ddf19c
                                    mrs_host);
ddf19c
 
ddf19c
-    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {   
ddf19c
+    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {
ddf19c
         /* Round the section to it's page size */
ddf19c
         /* First align the start down to a page boundary */
ddf19c
         size_t mrs_page = qemu_ram_pagesize(mrs_rb);
ddf19c
@@ -566,8 +566,8 @@ static void vhost_region_add_section(struct vhost_dev *dev,
ddf19c
         if (alignage) {
ddf19c
             mrs_size += mrs_page - alignage;
ddf19c
         }
ddf19c
-        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa, mrs_size,
ddf19c
-                                               mrs_host);
ddf19c
+        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa,
ddf19c
+                                               mrs_size, mrs_host);
ddf19c
     }
ddf19c
 
ddf19c
     if (dev->n_tmp_sections) {
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c