From: Avi Kivity <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 7f59367..09057b7 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1174,6 +1174,9 @@ int __kvm_set_memory_region(struct kvm *kvm,
for (i = 0; i < KVM_NR_PAGE_SIZES - 1; ++i) {
int level = i + 2;
+ /* Avoid unused variable warning if no large pages */
+ (void)level;
+
if (new.lpage_info[i])
continue;
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html