From: Mark D Rustad Date: Wed, 30 Jul 2014 21:19:26 +0000 (-0700) Subject: x86/kvm: Resolve shadow warnings in macro expansion X-Git-Tag: cleanup-for-v3.18~143^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42cbc04fd3b5e3f9b011bf9fa3ce0b3d1e10b58b;p=pandora-kernel.git x86/kvm: Resolve shadow warnings in macro expansion 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 Signed-off-by: Jeff Kirsher Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed