From: Philippe Mathieu-Daudé Date: Fri, 24 Jul 2020 08:43:15 +0000 (+0200) Subject: stubs/cmos: Use correct include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1538d763451543a0e55966c27fe95b7dfb72df2f;p=qemu.git stubs/cmos: Use correct include cmos_get_fd_drive_type() is declared in "hw/block/fdc.h". This currently works because "hw/i386/pc.h" happens to include it. Simplify including the correct header. Fixes: 2055dbc1c9 ("acpi: move aml builder code for floppy device") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: John Snow Message-Id: <20200724084315.1606-1-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- diff --git a/stubs/cmos.c b/stubs/cmos.c index 416cbe4055..3fdbae2c69 100644 --- a/stubs/cmos.c +++ b/stubs/cmos.c @@ -1,5 +1,5 @@ #include "qemu/osdep.h" -#include "hw/i386/pc.h" +#include "hw/block/fdc.h" int cmos_get_fd_drive_type(FloppyDriveType fd0) {