[PATCH V3 3/4] x86/kvm: Resolve shadow warnings in macro expansion

2014-07-31 Thread Mark D Rustad
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,

[PATCH V2 1/4] x86/kvm: Resolve some missing-initializers warnings

2014-07-30 Thread Mark D Rustad
Resolve some missing-initializers warnings that appear in W=2 builds. They are resolved by adding the name as a parameter to the macros and having the macro generate all four fields of the structure. Signed-off-by: Mark Rustad mark.d.rus...@intel.com Signed-off-by: Jeff Kirsher

[PATCH V2 3/4] x86/kvm: Resolve shadow warnings in macro expansion

2014-07-30 Thread Mark D Rustad
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,