diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-05-11 18:59:59 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-06-16 15:00:07 +0200 |
commit | a488ef738797861178105e53cccf8106404c8d09 (patch) | |
tree | 6d5e6ddb296721c195ba795928d82a0f20ec0896 | |
parent | 75a7ac3089e07511231d3fd7b612cd9e243edd7b (diff) | |
download | kvm-unit-tests-a488ef738797861178105e53cccf8106404c8d09.tar.gz |
x86: avoid multiple defined symbol
Fedora 32 croaks about a symbol that is defined twice, fix it.
Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200511165959.42442-1-pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r-- | lib/x86/fault_test.c | 2 | ||||
-rw-r--r-- | lib/x86/usermode.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/x86/fault_test.c b/lib/x86/fault_test.c index 078dae3..e15a218 100644 --- a/lib/x86/fault_test.c +++ b/lib/x86/fault_test.c @@ -1,6 +1,6 @@ #include "fault_test.h" -jmp_buf jmpbuf; +static jmp_buf jmpbuf; static void restore_exec_to_jmpbuf(void) { diff --git a/lib/x86/usermode.c b/lib/x86/usermode.c index f01ad9b..f032523 100644 --- a/lib/x86/usermode.c +++ b/lib/x86/usermode.c @@ -14,7 +14,7 @@ #define USERMODE_STACK_SIZE 0x2000 #define RET_TO_KERNEL_IRQ 0x20 -jmp_buf jmpbuf; +static jmp_buf jmpbuf; static void restore_exec_to_jmpbuf(void) { |