From: Harvey Harrison Date: Tue, 19 Feb 2008 18:43:11 +0000 (-0800) Subject: KVM: x86 emulator: fix sparse warnings in x86_emulate.c X-Git-Tag: v2.6.26-rc1~1028^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77cd337f2246ae72915538383e8f5a6b7ffb363d;p=pandora-kernel.git KVM: x86 emulator: fix sparse warnings in x86_emulate.c Nesting __emulate_2op_nobyte inside__emulate_2op produces many shadowed variable warnings on the internal variable _tmp used by both macros. Change the outer macro to use __tmp. Avoids a sparse warning like the following at every call site of __emulate_2op arch/x86/kvm/x86_emulate.c:1091:3: warning: symbol '_tmp' shadows an earlier one arch/x86/kvm/x86_emulate.c:1091:3: originally declared here [18 more warnings suppressed] Signed-off-by: Harvey Harrison Signed-off-by: Avi Kivity --- Reading git-diff-tree failed