]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use proper types to access const arrays
authorMathias Krause <minipli@googlemail.com>
Wed, 26 Jun 2013 18:36:21 +0000 (20:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jul 2013 10:29:28 +0000 (12:29 +0200)
commitb9fda4a7f91654d8f20de515b592eb53b5e15c61
treed68d39e7a80b252a002a36aa5f70777b12c084cf
parent4b7bbf8186c132c89b70a524efc34106a26f5cac
KVM: VMX: Use proper types to access const arrays

Use a const pointer type instead of casting away the const qualifier
from const arrays. Keep the pointer array on the stack, nonetheless.
Making it static just increases the object size.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c