KVM: x86/pmu: Fix warnings in pmu.h
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 KVM: x86/pmu: Fix warnings in pmu.h
The following checkpatch warning is removed:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by Jie Shi <[email protected]>
--- arch/x86/kvm/pmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/pmu.h +1 -1
@@ -249,7 +249,7 @@ static inline bool pmc_is_globally_enabled(struct kvm_pmc *pmc)void kvm_pmu_deliver_pmi (struct kvm_vcpu *vcpu);void kvm_pmu_handle_event (struct kvm_vcpu *vcpu); -int kvm_pmu_rdpmc (struct kvm_vcpu *vcpu,unsigned pmc,u64 *data); +int kvm_pmu_rdpmc (struct kvm_vcpu *vcpu,unsigned int pmc,u64 *data); bool kvm_pmu_is_valid_rdpmc_ecx(struct kvm_vcpu *vcpu, unsigned int
idx);
bool kvm_pmu_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr); int kvm_pmu_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info);