target/loongarch/kvm: Include missing exec/cpu-defs.h header
PATCH v2 1/1 target/loongarch/kvm: Include missing exec/cpu-defs.h header
After commit 71cab1a42d2 removed the indirect include of exec/cpu-defs.h from target/loongarch/cpu.h, the TARGET_FMT_lx macro is no longer visible in kvm.c, causing build failures:
error: expected ')' before TARGET_FMT_lx
Add the missing #include exec/cpu-defs.h to restore the TARGET_FMT_lx definition.
--- target/loongarch/kvm/kvm.c | 1 + 1 file changed, 1 insertion(+)
target/loongarch/kvm/kvm.c +1 -0
@@ -6,6 +6,7 @@*/ #include "qemu/osdep.h" +#include "exec/target_long.h" #include <sys/ioctl.h> #include <linux/kvm.h> #include "asm-loongarch/kvm_para.h"
Signature · 1 line
2.20.1
Quoted 8 lines · Qiang Ma
After commit
71cab1a42d2removed the indirect include ofexec/cpu-defs.hfromtarget/loongarch/cpu.h, theTARGET_FMT_lxmacro is no longer visible inkvm.c, causing build failures:error: expected ')' before
TARGET_FMT_lxAdd the missing #include
exec/cpu-defs.hto restore theTARGET_FMT_lxdefinition.
Hi,
The commit message does not match the changes.
Quoted 10 lines
Signed-off-by Qiang Ma <[email protected]>--- target/loongarch/kvm/kvm.c | 1 + 1 file changed, 1 insertion(+)target/loongarch/kvm/kvm.c +0
-0
target/loongarch/kvm/kvm.c line 9
Quoted 4 lines
target/loongarch/kvm/kvm.c +1
-0@@ -6,6 +6,7 @@*/ #include "qemu/osdep.h" +#include "exec/target_long.h"
Thanks.
Song Gao
Quoted 3 lines
target/loongarch/kvm/kvm.c +0
-0#include <sys/ioctl.h> #include <linux/kvm.h> #include "asm-loongarch/kvm_para.h"
Philippe Mathieu-Daudé
Reviewed-byQuoted 11 lines · gaosong
Quoted 8 lines · Qiang Ma
After commit
71cab1a42d2removed the indirect include ofexec/cpu-defs.hfromtarget/loongarch/cpu.h, theTARGET_FMT_lxmacro is no longer visible inkvm.c, causing build failures:error: expected ')' before
TARGET_FMT_lxAdd the missing #include
exec/cpu-defs.hto restore theTARGET_FMT_lxdefinition.Hi,
The commit message does not match the changes.
Otherwise:
Quoted 21 lines
target/loongarch/kvm/kvm.c line 8
Quoted 13 lines
Signed-off-by Qiang Ma <[email protected]>---
target/loongarch/kvm/kvm.c| 1 +1 file changed, 1 insertion(+)target/loongarch/kvm/kvm.c +1
-0@@ -6,6 +6,7 @@*/ #include "qemu/osdep.h" +#include "exec/target_long.h" Reviewed-by Song Gao <[email protected]>Thanks.
Song GaoQuoted 3 lines
target/loongarch/kvm/kvm.c +0
-0#include <sys/ioctl.h> #include <linux/kvm.h> #include "asm-loongarch/kvm_para.h"