OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5093362
)
KVM: x86 emulator: Eliminate compilation warning in x86_decode_insn()
author
Sheng Yang
<sheng@linux.intel.com>
Tue, 28 Sep 2010 08:33:32 +0000
(16:33 +0800)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:53:09 +0000
(10:53 +0200)
Eliminate:
arch/x86/kvm/emulate.c:801: warning: ‘sv’ may be used uninitialized in this
function
on gcc 4.1.2
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index
aead72e
..
d0df25d
100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-798,7
+798,7
@@
done:
static void fetch_bit_operand(struct decode_cache *c)
{
- long sv, mask;
+ long sv
= 0
, mask;
if (c->dst.type == OP_MEM && c->src.type == OP_REG) {
mask = ~(c->dst.bytes * 8 - 1);