From nobody Sun May 19 00:42:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1579680643; cv=none; d=zohomail.com; s=zohoarc; b=aIAD6dhpg3QYGvCGHr1eoICrX4PP6CvIwi6s8nk4kGqdmqOaF1OHUvjzJ5/MRIDjL9TKDzZC08wNK1gB+wLScmdIHgckeseR9UOI5WVaJuXNcW6P9uC5oNI2GMKy++JeGskSDugjNsegeXKi7Y5CISBzDdQpcEUdyywH3d9YRn0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579680643; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=7jbGyeuMwv2CGwDe+4+FRf90DJhJt/iFUIQrlaWheaQ=; b=VbLeej1ByAIX1FWCIv+4oh7KOfm0DVpvuLn4j7o9aBYzvMlaiVE9hTRdq4zr4Ou8uLC8W7AlLsChcHbS1iKCjaKrtG22+ClAJiYxDVDvZmilMRua4vFTAZsKO6EA+ItPXZZ1mirPPhv6KL1jwF2X4AF4ba5py+/xe09GZntK5ic= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1579680643093777.7938589313629; Wed, 22 Jan 2020 00:10:43 -0800 (PST) Received: from localhost ([::1]:38328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuB61-0002tL-VW for importer@patchew.org; Wed, 22 Jan 2020 03:10:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44117) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuB4L-00014P-7g for qemu-devel@nongnu.org; Wed, 22 Jan 2020 03:08:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuB4K-0007mD-6A for qemu-devel@nongnu.org; Wed, 22 Jan 2020 03:08:57 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:42158 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iuB4J-0007lh-Oj for qemu-devel@nongnu.org; Wed, 22 Jan 2020 03:08:55 -0500 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-83-BhE86HY7PcGrtnSIe6cAGA-1; Wed, 22 Jan 2020 03:08:53 -0500 Received: by mail-wm1-f69.google.com with SMTP id 18so1720584wmp.0 for ; Wed, 22 Jan 2020 00:08:53 -0800 (PST) Received: from redhat.com (bzq-79-176-0-156.red.bezeqint.net. [79.176.0.156]) by smtp.gmail.com with ESMTPSA id m7sm56021634wrr.40.2020.01.22.00.08.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 00:08:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579680535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7jbGyeuMwv2CGwDe+4+FRf90DJhJt/iFUIQrlaWheaQ=; b=ceiKSfQliLlFe4JtR+FCRuqY4ImfuLU1RNoxNxC/gG09mv0B0m8ioxiMsVR9Zy5hg737bP LdXGM5VrCAx+0z6w2Ca2Uutn9kADF3D01grNsaEMrrV8d1iqwivdOSP5ZcQiMKcv1tK/LI 5RWX9QKfAN4U7wjNIEdtrdYRuN+w4fA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=am4EjmW9E48Zpqsim6RC+G3gEvfWGSqcNR38rpxPe+M=; b=PUKx0qZeY8UYfivAdRwKXt1kSDAkbt/YrUtir4kfRGbpv5c5T6bhZ7ENHYIjy2y0IR iYCMaOJoKxSvBI7uSijYsFRouhHVwDSkXp3Kyn44gFUjs5UwsA36044lVFDpX0wBCHpt Q5qf5dCNosYvDfko+02+gsNEjavGvCtU8zJXsMNJABvEAsdvlXtRmNIvPRIAFqHbBfGh 4z2XJm8QOWvVjyPDDF76f9whd7kPsZobqoJ50bxYuNu+wBFP4Co3JIRK1g1uVsEnqKzL LcZ6XNyCLGrI7rT8fTyel75NqGvJ+07mCInp4PzelHwyFnt/7RnWp6OAxvPqeMRugMrl ivnA== X-Gm-Message-State: APjAAAX+2g1fZ38uNFJfr5J5pmxG2r1eGkmPJFcWu2kXwIUpr3rsYHq6 d4M91ih7gh4ikNN/DhsNzpCljBFVX+UwvsF9XLiWjqr4unXy2NrcAcU7zi0uFIT3upbb5TO0C1N vaxOXDrDS4H+aBq4= X-Received: by 2002:a7b:c5d8:: with SMTP id n24mr1635057wmk.50.1579680532034; Wed, 22 Jan 2020 00:08:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzrZOzsPTrSqe1EBoOCeqZIekp8akD6S4z76xWyyQgINF0VSqBAyqI8TLorxk5OAbuHuJUwuA== X-Received: by 2002:a7b:c5d8:: with SMTP id n24mr1634997wmk.50.1579680531355; Wed, 22 Jan 2020 00:08:51 -0800 (PST) Date: Wed, 22 Jan 2020 03:08:49 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PATCH] vhost: coding style fix Message-ID: <20200122080840.592054-1-mst@redhat.com> MIME-Version: 1.0 X-Mailer: git-send-email 2.24.1.751.gd10ce2899c X-Mutt-Fcc: =sent X-MC-Unique: BhE86HY7PcGrtnSIe6cAGA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dgilbert@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Drop a trailing whitespace. Make line shorter. Fixes: 76525114736e8 ("vhost: Only align sections for vhost-user") Signed-off-by: Michael S. Tsirkin Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Stefan Hajnoczi --- hw/virtio/vhost.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 25fd469179..9edfadc81d 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -551,7 +551,7 @@ static void vhost_region_add_section(struct vhost_dev *= dev, trace_vhost_region_add_section(section->mr->name, mrs_gpa, mrs_size, mrs_host); =20 - if (dev->vhost_ops->backend_type =3D=3D VHOST_BACKEND_TYPE_USER) { =20 + if (dev->vhost_ops->backend_type =3D=3D VHOST_BACKEND_TYPE_USER) { /* Round the section to it's page size */ /* First align the start down to a page boundary */ size_t mrs_page =3D qemu_ram_pagesize(mrs_rb); @@ -566,8 +566,8 @@ static void vhost_region_add_section(struct vhost_dev *= dev, if (alignage) { mrs_size +=3D mrs_page - alignage; } - trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa,= mrs_size, - mrs_host); + trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa, + mrs_size, mrs_host); } =20 if (dev->n_tmp_sections) { --=20 MST