include/hw/i386: Don't include qemu-common.h in .h files

The qemu-common.h header is not supposed to be included from any
other header files, only from .c files (as documented in a comment at
the start of it).

include/hw/i386/x86.h and include/hw/i386/microvm.h break this rule.
In fact, the include is not required at all, so we can just drop it
from both files.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20211129200510.1233037-2-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2021-11-29 20:05:07 +00:00
parent e0e875a68a
commit 9cafc0735f
2 changed files with 0 additions and 2 deletions

View File

@ -18,7 +18,6 @@
#ifndef HW_I386_MICROVM_H #ifndef HW_I386_MICROVM_H
#define HW_I386_MICROVM_H #define HW_I386_MICROVM_H
#include "qemu-common.h"
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
#include "qemu/notify.h" #include "qemu/notify.h"

View File

@ -17,7 +17,6 @@
#ifndef HW_I386_X86_H #ifndef HW_I386_X86_H
#define HW_I386_X86_H #define HW_I386_X86_H
#include "qemu-common.h"
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
#include "qemu/notify.h" #include "qemu/notify.h"