projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c3ba9
)
KVM: Replace C code with call to ARRAY_SIZE() macro.
author
Robert P. J. Day
<rpjday@mindspring.com>
Sun, 3 Jun 2007 17:35:29 +0000
(13:35 -0400)
committer
Avi Kivity
<avi@qumranet.com>
Mon, 16 Jul 2007 09:05:45 +0000
(12:05 +0300)
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/vmx.c
b/drivers/kvm/vmx.c
index 4d255493a57ef05180dd35674087ccf2d8117652..a534e6fe81847994b291709e75eea9342975c32d 100644
(file)
--- a/
drivers/kvm/vmx.c
+++ b/
drivers/kvm/vmx.c
@@
-1932,7
+1932,7
@@
static int (*kvm_vmx_exit_handlers[])(struct kvm_vcpu *vcpu,
};
static const int kvm_vmx_max_exit_handlers =
-
sizeof(kvm_vmx_exit_handlers) / sizeof(*
kvm_vmx_exit_handlers);
+
ARRAY_SIZE(
kvm_vmx_exit_handlers);
/*
* The guest has exited. See if we can fix it or if we need userspace