x86/kvm: Resolve shadow warnings in macro expansion
authorMark D Rustad <mark.d.rustad@intel.com>
Wed, 30 Jul 2014 21:19:26 +0000 (14:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Jul 2014 14:33:29 +0000 (16:33 +0200)
Resolve shadow warnings that appear in W=2 builds. Instead of
using ret to hold the return pointer, save the length in a new
variable saved_len and compute the pointer on exit. This also
resolves a very technical error, in that ret was declared as
a const char *, when it really was a char * const.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmutrace.h

Simple merge