summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhouyang2020-12-09 07:07:35 +0100
committerLaurent Vivier2020-12-13 17:46:36 +0100
commit87b804ec4c05d793f9c6374b0e90ef2614bb5b25 (patch)
tree8a09249147fcd995617a26e77125b8c61a55fd22
parenthw/pci-host/pam: Replace magic number by PAM_REGIONS_COUNT definition (diff)
downloadqemu-87b804ec4c05d793f9c6374b0e90ef2614bb5b25.tar.gz
qemu-87b804ec4c05d793f9c6374b0e90ef2614bb5b25.tar.xz
qemu-87b804ec4c05d793f9c6374b0e90ef2614bb5b25.zip
fsdev: open brace '{' following struct go on the same line
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 <zhouyang789@huawei.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20201209060735.2760943-1-zhouyang789@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--fsdev/9p-marshal.h12
-rw-r--r--fsdev/file-op-9p.h3
2 files changed, 5 insertions, 10 deletions
diff --git a/fsdev/9p-marshal.h b/fsdev/9p-marshal.h
index 8f3babb60a..ceaf2f521e 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
-typedef struct V9fsString
-{
+typedef struct V9fsString {
uint16_t size;
char *data;
} V9fsString;
-typedef struct V9fsQID
-{
+typedef struct V9fsQID {
uint8_t type;
uint32_t version;
uint64_t path;
} V9fsQID;
-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;
-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 d51cec2f3b..42f677cf38 100644
--- a/fsdev/file-op-9p.h
+++ b/fsdev/file-op-9p.h
@@ -110,8 +110,7 @@ typedef union V9fsFidOpenState V9fsFidOpenState;
void cred_init(FsCred *);
-struct FileOperations
-{
+struct FileOperations {
int (*parse_opts)(QemuOpts *, FsDriverEntry *, Error **errp);
int (*init)(FsContext *, Error **errp);
void (*cleanup)(FsContext *);