All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix some style problems in qom
@ 2020-11-18  6:45 Yutao Ai
  2020-11-18  6:45 ` [PATCH 1/2] qom:open brace '{' following struct go on the same line Yutao Ai
  2020-11-18  6:45 ` [PATCH 2/2] qom:delete trailing whitespace Yutao Ai
  0 siblings, 2 replies; 3+ messages in thread
From: Yutao Ai @ 2020-11-18  6:45 UTC (permalink / raw)
  To: pbonzini, berrange, ehabkost; +Cc: alex.chen, aiyutao, qemu-devel

I find some style problems while using checkpatch.pl to check qom code.
And I fixed these style problems in the submit patches.

Yutao Ai (2):
  qom:open brace '{' following struct go on the same line
  qom:delete trailing whitespace

 qom/object.c | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

-- 
2.19.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] qom:open brace '{' following struct go on the same line
  2020-11-18  6:45 [PATCH 0/2] Fix some style problems in qom Yutao Ai
@ 2020-11-18  6:45 ` Yutao Ai
  2020-11-18  6:45 ` [PATCH 2/2] qom:delete trailing whitespace Yutao Ai
  1 sibling, 0 replies; 3+ messages in thread
From: Yutao Ai @ 2020-11-18  6:45 UTC (permalink / raw)
  To: pbonzini, berrange, ehabkost; +Cc: alex.chen, aiyutao, qemu-devel

Move the open brace '{' following struct go on the same line

Signed-off-by: Yutao Ai <aiyutao@huawei.com>
---
 qom/object.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/qom/object.c b/qom/object.c
index 1065355233..0cd2161012 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -38,13 +38,11 @@
 typedef struct InterfaceImpl InterfaceImpl;
 typedef struct TypeImpl TypeImpl;
 
-struct InterfaceImpl
-{
+struct InterfaceImpl {
     const char *typename;
 };
 
-struct TypeImpl
-{
+struct TypeImpl {
     const char *name;
 
     size_t class_size;
@@ -1048,8 +1046,7 @@ ObjectClass *object_class_get_parent(ObjectClass *class)
     return type->class;
 }
 
-typedef struct OCFData
-{
+typedef struct OCFData {
     void (*fn)(ObjectClass *klass, void *opaque);
     const char *implements_type;
     bool include_abstract;
@@ -2137,8 +2134,7 @@ Object *object_resolve_path(const char *path, bool *ambiguous)
     return object_resolve_path_type(path, TYPE_OBJECT, ambiguous);
 }
 
-typedef struct StringProperty
-{
+typedef struct StringProperty {
     char *(*get)(Object *, Error **);
     void (*set)(Object *, const char *, Error **);
 } StringProperty;
@@ -2216,8 +2212,7 @@ object_class_property_add_str(ObjectClass *klass, const char *name,
                                      prop);
 }
 
-typedef struct BoolProperty
-{
+typedef struct BoolProperty {
     bool (*get)(Object *, Error **);
     void (*set)(Object *, bool, Error **);
 } BoolProperty;
-- 
2.19.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] qom:delete trailing whitespace
  2020-11-18  6:45 [PATCH 0/2] Fix some style problems in qom Yutao Ai
  2020-11-18  6:45 ` [PATCH 1/2] qom:open brace '{' following struct go on the same line Yutao Ai
@ 2020-11-18  6:45 ` Yutao Ai
  1 sibling, 0 replies; 3+ messages in thread
From: Yutao Ai @ 2020-11-18  6:45 UTC (permalink / raw)
  To: pbonzini, berrange, ehabkost; +Cc: alex.chen, aiyutao, qemu-devel

Delete trailing whitespace

Signed-off-by: Yutao Ai <aiyutao@huawei.com>
---
 qom/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qom/object.c b/qom/object.c
index 0cd2161012..1ebf92bdc7 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1067,7 +1067,7 @@ static void object_class_foreach_tramp(gpointer key, gpointer value,
         return;
     }
 
-    if (data->implements_type && 
+    if (data->implements_type &&
         !object_class_dynamic_cast(k, data->implements_type)) {
         return;
     }
-- 
2.19.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-18 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18  6:45 [PATCH 0/2] Fix some style problems in qom Yutao Ai
2020-11-18  6:45 ` [PATCH 1/2] qom:open brace '{' following struct go on the same line Yutao Ai
2020-11-18  6:45 ` [PATCH 2/2] qom:delete trailing whitespace Yutao Ai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.