From nobody Tue Nov 18 04:28:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1607975986; cv=none; d=zohomail.com; s=zohoarc; b=FrgLOfVOudysZPqyFjwUF03qMLRCmfHOACm1ldT4WwOS+jBhuEsa+fZRaMb35d+0gIB9X2FTAggZf5v94L4iDNPjISfxOTHLG6KoDavH66Gz15uoLJJJR+Cqn/+hOQ3Ba/0agtjxh+vAKz/6Qs7B2JpdcDY9fKiUl+qgKYl+2Cw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607975986; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+ZTjmTzvcv8AGQ16JOlRZd1skphBz9EGDwDMDSrOErI=; b=Eb1NvM/D6rarF7rssah0DXh/Z6KLp2tKeeBfiekrVvT2l7mDxs74+i2YqCLbRgKEQgZyFjgqF6aPLTWVwE6Po/5GO4cJRsnzlj4ovvwhwlzsgIVXag0noDGH2EV9uiV9DfJ1fo2UwMNe2E0cS5v+feJu78c0CJT2WsFbLcS7u/I= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1607975986080695.5095493779875; Mon, 14 Dec 2020 11:59:46 -0800 (PST) Received: from localhost ([::1]:43366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koqPt-00066K-4w for importer@patchew.org; Mon, 14 Dec 2020 11:09:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koqEv-0008JI-VV; Mon, 14 Dec 2020 10:58:21 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:34463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koqEZ-0001Rt-MH; Mon, 14 Dec 2020 10:58:19 -0500 Received: from localhost.localdomain ([82.252.135.218]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MtOOm-1jyWIC2Xp0-00upm5; Mon, 14 Dec 2020 16:57:42 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 06/19] fsdev: open brace '{' following struct go on the same line Date: Mon, 14 Dec 2020 16:57:20 +0100 Message-Id: <20201214155733.207430-7-laurent@vivier.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214155733.207430-1-laurent@vivier.eu> References: <20201214155733.207430-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:pQqctQitfJUvkSvVY3kMl2Wy0lD3cIpkOHQB4FDBXqoyQrFQwNI NI8xPRko5RxqK4esqf6dO4EJ0axzX0MztpV+1grnl1HdNJ9MSrhVbwyK987T1DEikkor8nR y9xFGFz6DeJ7unH8mRn9UqnrgYpbdksZ2fse+OxkcUwzYNhUXzImn0dnd9ZRuKG86gQdk0P ge8n4QW/yf0yt2q/A1qpQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:yV9ilGWCju0=:F+6hXJ/tZJyHGd1R2N46jR AAHar87MsySpfdVoVO25jbjbG4JwGdFnHf+YUpvDTkCEchxoiJ9barOgJ3hRk+45glhCPPi92 +IwSTlttVzFmZ7cXLR8ZgSjJPGTzb0ZPxTTWZqZ1ZEFuhjHhs0NtTm9gX5D8QlVHT+yFmeLvC NZe7+52KfbLieF/Z4Wd+zNF6RPUHR/+3/7gYClszkLWrbicgnDnNgjf5MZpSADF5ZjPfED8VX lN3SdQUfsA3kzTG9vy+0lRjZlRZHJ6z7w72NpbsmEq6j6DZBWhiCrBsGt7q8/2naXigesc8cr Z7C/OCDfGDwdmKMjpiGgSGwGbG0RwQoGjkWpfwi7v0/vHon6sEFcv9wgC8Azlqpbw9sH4yWwQ eEDkOjUI6MsnqpUSXcn1O2aiA8GlxCLgCqhMsS7gSGQ8TzBJBshpGG/YzjLsD5hSdM7H7hZOF D8mj1kzsWA== 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; Received-SPF: none client-ip=212.227.17.24; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_NONE=0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Michael Tokarev , Laurent Vivier , zhouyang Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: zhouyang I found some style problems while check the code using checkpatch.pl. This commit fixs the issue below: ERROR: open brace '{' following struct go on the same line Signed-off-by: zhouyang Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20201209060735.2760943-1-zhouyang789@huawei.com> Signed-off-by: Laurent Vivier --- fsdev/9p-marshal.h | 12 ++++-------- fsdev/file-op-9p.h | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/fsdev/9p-marshal.h b/fsdev/9p-marshal.h index 8f3babb60a05..ceaf2f521ec4 100644 --- a/fsdev/9p-marshal.h +++ b/fsdev/9p-marshal.h @@ -1,21 +1,18 @@ #ifndef QEMU_9P_MARSHAL_H #define QEMU_9P_MARSHAL_H =20 -typedef struct V9fsString -{ +typedef struct V9fsString { uint16_t size; char *data; } V9fsString; =20 -typedef struct V9fsQID -{ +typedef struct V9fsQID { uint8_t type; uint32_t version; uint64_t path; } V9fsQID; =20 -typedef struct V9fsStat -{ +typedef struct V9fsStat { int16_t size; int16_t type; int32_t dev; @@ -35,8 +32,7 @@ typedef struct V9fsStat int32_t n_muid; } V9fsStat; =20 -typedef struct V9fsIattr -{ +typedef struct V9fsIattr { int32_t valid; int32_t mode; int32_t uid; diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index d51cec2f3be0..42f677cf38c2 100644 --- a/fsdev/file-op-9p.h +++ b/fsdev/file-op-9p.h @@ -110,8 +110,7 @@ typedef union V9fsFidOpenState V9fsFidOpenState; =20 void cred_init(FsCred *); =20 -struct FileOperations -{ +struct FileOperations { int (*parse_opts)(QemuOpts *, FsDriverEntry *, Error **errp); int (*init)(FsContext *, Error **errp); void (*cleanup)(FsContext *); --=20 2.29.2