diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index b98095edf1f4906a3e7cc67d45fbf4f1d35777bb..8416754b2bc3fda0e02ad2395b4d5b3eb1333122 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c @@ -313,9 +313,9 @@ struct vcpu_event_record { static void init_kvm_event_record(struct perf_kvm *kvm) { - int i; + unsigned int i; - for (i = 0; i < (int)EVENTS_CACHE_SIZE; i++) + for (i = 0; i < EVENTS_CACHE_SIZE; i++) INIT_LIST_HEAD(&kvm->kvm_events_cache[i]); }