Per Sean in discussion of the previous patch, "using the compiler's memset() in kvm-unit-tests seems inherently dangerous since the tests are often doing intentionally stupid things." The string.h memset is already imported through libcflat.h, so let's use that instead. Suggested-by: Sean Christopherson <seanjc@xxxxxxxxxx> Signed-off-by: Jacob Xu <jacobhxu@xxxxxxxxxx> --- x86/emulator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/x86/emulator.c b/x86/emulator.c index 1d5c172..d6e31bf 100644 --- a/x86/emulator.c +++ b/x86/emulator.c @@ -8,7 +8,6 @@ #include "alloc_page.h" #include "usermode.h" -#define memset __builtin_memset #define TESTDEV_IO_PORT 0xe0 #define MAGIC_NUM 0xdeadbeefdeadbeefUL -- 2.31.1.607.g51e8a6a459-goog