win32: fix broken build due to missing QEMU_MADV_HUGEPAGE
PATCH 1/1 win32: fix broken build due to missing QEMU_MADV_HUGEPAGE
Commit ad0b5321f1f797274603ebbe20108b0750baee94 forgot to add QEMU_MADV_HUGEPAGE macros for when CONFIG_MADVISE is not defined. This broke the build for Windows. Fix it.
--- osdep.h | 2 ++ 1 file changed, 2 insertions(+)
osdep.h +2 -0
@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID +#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID#else /* no-op */
@@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID +#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID#endif
Signature · 1 line
1.7.12.315.g682ce8b
Am 24.10.2012 18:12, schrieb Luiz Capitulino:
Quoted 22 lines
Commit
ad0b5321f1f797274603ebbe20108b0750baee94forgot to addQEMU_MADV_HUGEPAGEmacros for whenCONFIG_MADVISEis not defined. This broke the build for Windows. Fix it.Signed-off-by Luiz Capitulino<[email protected]>--- osdep.h | 2 ++ 1 file changed, 2 insertions(+)osdep.h +1
-0@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID +#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID#else /* no-op */
osdep.h void qemu_vfree(void *ptr); · line 136
Quoted 7 lines
osdep.h +1
-0@@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID +#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID#endif
This is a build fix for latest QEMU. Please apply it as soon as possible.
Regards
Stefan Weil
Anthony Liguori
AppliedQuoted 5 lines · Luiz Capitulino
Commit
ad0b5321f1f797274603ebbe20108b0750baee94forgot to addQEMU_MADV_HUGEPAGEmacros for whenCONFIG_MADVISEis not defined. This broke the build for Windows. Fix it.Signed-off-by Luiz Capitulino <[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 26 lines
--- osdep.h | 2 ++ 1 file changed, 2 insertions(+)osdep.h +2
-0@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID +#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID#else /* no-op */ @@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);#define QEMU_MADV_DONTFORK QEMU_MADV_INVALID#define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID#define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID +#define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID#endif Signature · 1 line
1.7.12.315.g682ce8b