From patchwork Tue Aug 2 09:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 594842 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp4195870maz; Tue, 2 Aug 2022 02:53:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNS1Yz58aPx1wF5GGOjNs1UxOER3BAKXk+MzxJgME0+/cDd2tCqJnK2Ys0jk8bSO1fosiw X-Received: by 2002:a05:622a:1194:b0:31f:3909:4e66 with SMTP id m20-20020a05622a119400b0031f39094e66mr17764940qtk.305.1659433996559; Tue, 02 Aug 2022 02:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659433996; cv=none; d=google.com; s=arc-20160816; b=eezqBjC2hi/cblfp9kbdmb70/zrz+Pc0aB23h9OTOPljtjnTHhiRneMX8Tys6dl3Om sR25DZa9i/GFklHxelSNfQ58axsHS7EoZMD0GND1g4tjMUgQ16/fRYRdCe8RDgmQ9Zcj p91ODNg5o5IZbfHrc8VnsxuU9rkduS/KIYch2+XgDFCfJRgA8yFnYVkiNs8rjeWhQuzw C/CgeBX/lcrAKikbNfcHjo6/V9SpltgfgwnYKDLqHU7KIcbA4HRrPfXwd1Bj+5jaJhd1 iJny3NmnSIEHDm2Is6CnUS2xYq3lVQWsrjVl1BKKcM6mDFR4Glmn7zWkXqU6p+b9w3Ub UkSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KjbLNdi3E1apNFwTGial5s5eMkKbrprSc8sGCh0PAC4=; b=oiSok9xv2ov271DaADXqo/kLkMpbfb3etUA3BRFEpLVznjuon26jDpPBu3NSy3nwxo aHB+Ad7KQyv55wlyWV36hBS1awYmPlkw9TD13eXR3YSSs0BO/RGBVYJcBoN4Zb//LE2W zTWl8xocs5iGb3f6gDQsyYaSAgZGcFz8P01Faux+MTjHw/oWJz1zQW4d9t1s4W1zqx60 DYi5qMXkpXceucsxFgBaNJNRxzWT/sGWVw0L8UOfdijXQfwywExfAIwrje1wlK0LsIuS 5dS2YEDfTZH3LwxB2lJQOAg161ziz2jbbIXPpFqwreZ7VzGyBdtr2IzdgliZ+U7dEwX5 JIMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QEtzfjEH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a27-20020ac8611b000000b0031f40346b77si8809417qtm.707.2022.08.02.02.53.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Aug 2022 02:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QEtzfjEH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIoaS-0005ul-5A for patch@linaro.org; Tue, 02 Aug 2022 05:53:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIoXk-0001L2-TX for qemu-devel@nongnu.org; Tue, 02 Aug 2022 05:50:29 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:45594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIoXf-0002Qp-Oq for qemu-devel@nongnu.org; Tue, 02 Aug 2022 05:50:28 -0400 Received: by mail-wr1-x42c.google.com with SMTP id z16so17094524wrh.12 for ; Tue, 02 Aug 2022 02:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=KjbLNdi3E1apNFwTGial5s5eMkKbrprSc8sGCh0PAC4=; b=QEtzfjEHObPZngplL0jW5i0a/FKoRYbv4BUQCKx/Yp6C8AdlEQuUx9doP39tV9rekZ 0hy3lrFUAMHm1+kPZbo9nw5K6OZLtZCdbCyJukO6aQYH61ce5Dpx5JPYEM5ZjYL4oloo vn2ZBmmGgOMRFxpk1+PZbYar3n69i3vM3jfoamyk2BB2s0eM3oZfkRhrzqaG2KhDY7Tr slSInS07bC0q4r/E0WdfpvYJpCQINFopX1l5zg3ZT44KTfu2HkLboXknJd/SFs0rj1Fa qq57Jz1HJP/a+kKsb7yKKwhqkgwD8KzGrih94o1hfPxfRXsLrqp/apKyK+OynJwT7LPJ 0YJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=KjbLNdi3E1apNFwTGial5s5eMkKbrprSc8sGCh0PAC4=; b=UHb4OtJ/dwumY6ycu0eVXwSyZfoA3NvxhFVNhLOyC2mnvxznml+HZWLjhPXvGVZsEE ns4GeRle8NydUVl36ULzKMqxV8ZZNOJOSrYr8WHqDs7GJeeQAHrKp5uiIuI9qFJVQcpO Cw0jtqMSmgYtaJCQxHAyHSGCG9RAO6czyUj9TApxGkMC+s+Ns1F9Si0wYhUNYNUHuEgK 5BbZlldyBmL2YeKrwCfsw+6BW4vzL3711oOvHntCGNG+Ot5j/DM9wlejffsMz9nR7lkg qHLAvQY/Alsm7x3fg6OjdNW12LTUXk0Y6LDzBjxdCqv4juUWoUQvUXgTZ/a0Nnb8+YvC Cg7Q== X-Gm-Message-State: ACgBeo2NjEXgYD+Tf7F2S/mkz612N/upRHEH3/SyiGlYd/U0MKDmcvnw 1Zhjf9lnyvZRVd4mzPJ+PpbPrg== X-Received: by 2002:a05:6000:2aa:b0:21d:ac4b:95af with SMTP id l10-20020a05600002aa00b0021dac4b95afmr12207575wry.479.1659433822480; Tue, 02 Aug 2022 02:50:22 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id j4-20020a5d6044000000b002205df9ce16sm8307395wrt.97.2022.08.02.02.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 02:50:17 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3E18C1FFBF; Tue, 2 Aug 2022 10:50:11 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: slp@redhat.com, mst@redhat.com, marcandre.lureau@redhat.com, stefanha@redhat.com, mathieu.poirier@linaro.org, viresh.kumar@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Jason Wang Subject: [PATCH v4 07/22] hw/virtio: fix some coding style issues Date: Tue, 2 Aug 2022 10:49:55 +0100 Message-Id: <20220802095010.3330793-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220802095010.3330793-1-alex.bennee@linaro.org> References: <20220802095010.3330793-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Acked-by: Jason Wang Reviewed-by: Philippe Mathieu-Daudé --- hw/virtio/vhost-user.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index c0b50deaf2..b7c13e7e16 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -200,7 +200,7 @@ typedef struct { VhostUserRequest request; #define VHOST_USER_VERSION_MASK (0x3) -#define VHOST_USER_REPLY_MASK (0x1<<2) +#define VHOST_USER_REPLY_MASK (0x1 << 2) #define VHOST_USER_NEED_REPLY_MASK (0x1 << 3) uint32_t flags; uint32_t size; /* the following payload size */ @@ -208,7 +208,7 @@ typedef struct { typedef union { #define VHOST_USER_VRING_IDX_MASK (0xff) -#define VHOST_USER_VRING_NOFD_MASK (0x1<<8) +#define VHOST_USER_VRING_NOFD_MASK (0x1 << 8) uint64_t u64; struct vhost_vring_state state; struct vhost_vring_addr addr; @@ -248,7 +248,8 @@ struct vhost_user { size_t region_rb_len; /* RAMBlock associated with a given region */ RAMBlock **region_rb; - /* The offset from the start of the RAMBlock to the start of the + /* + * The offset from the start of the RAMBlock to the start of the * vhost region. */ ram_addr_t *region_rb_offset;