[PATCH] hw/core/accel-cpu: Add missing 'qom/object.h' include

Philippe Mathieu-Daudé posted 1 patch 2 years, 1 month ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220304142320.14281-1-philippe.mathieu.daude@gmail.com
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>
include/hw/core/accel-cpu.h | 2 ++
1 file changed, 2 insertions(+)
[PATCH] hw/core/accel-cpu: Add missing 'qom/object.h' include
Posted by Philippe Mathieu-Daudé 2 years, 1 month ago
From: Philippe Mathieu-Daudé <f4bug@amsat.org>

hw/core/accel-cpu.h requires "qom/object.h" for the ObjectClass
structure and the DECLARE_CLASS_CHECKERS() macro definitions.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 include/hw/core/accel-cpu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/hw/core/accel-cpu.h b/include/hw/core/accel-cpu.h
index 5dbfd79955..ab176b4e90 100644
--- a/include/hw/core/accel-cpu.h
+++ b/include/hw/core/accel-cpu.h
@@ -11,6 +11,8 @@
 #ifndef ACCEL_CPU_H
 #define ACCEL_CPU_H
 
+#include "qom/object.h"
+
 /*
  * This header is used to define new accelerator-specific target-specific
  * accelerator cpu subclasses.
-- 
2.34.1