qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] io/task: Move 'qom/object.h' header to source


From: Philippe Mathieu-Daudé
Subject: [PATCH 2/3] io/task: Move 'qom/object.h' header to source
Date: Mon, 4 May 2020 10:46:14 +0200

We need "qom/object.h" to call object_ref()/object_unref().

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
 include/io/task.h | 2 --
 io/task.c         | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/io/task.h b/include/io/task.h
index 1abbfb8b65..6818dfedd0 100644
--- a/include/io/task.h
+++ b/include/io/task.h
@@ -21,8 +21,6 @@
 #ifndef QIO_TASK_H
 #define QIO_TASK_H
 
-#include "qom/object.h"
-
 typedef struct QIOTask QIOTask;
 
 typedef void (*QIOTaskFunc)(QIOTask *task,
diff --git a/io/task.c b/io/task.c
index 1ae7b86488..53c0bed686 100644
--- a/io/task.c
+++ b/io/task.c
@@ -22,6 +22,7 @@
 #include "io/task.h"
 #include "qapi/error.h"
 #include "qemu/thread.h"
+#include "qom/object.h"
 #include "trace.h"
 
 struct QIOTaskThreadData {
-- 
2.21.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]