mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] KVM: x86/pmu: Fix warnings in pmu.h
       [not found] <tencent_C12CFA09493ED8DFE9D60EEBEE92C7E82605@qq.com>
@ 2023-07-12  8:26 ` shijie001
  0 siblings, 0 replies; only message in thread
From: shijie001 @ 2023-07-12  8:26 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86; +Cc: hpa, kvm, linux-kernel

The following checkpatch warning is removed:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Jie Shi <shijie001@208suo.com>
---
  arch/x86/kvm/pmu.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/pmu.h b/arch/x86/kvm/pmu.h
index 7d9ba301c090..dbc131b378f2 100644
--- a/arch/x86/kvm/pmu.h
+++ b/arch/x86/kvm/pmu.h
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-12  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_C12CFA09493ED8DFE9D60EEBEE92C7E82605@qq.com>
2023-07-12  8:26 ` [PATCH] KVM: x86/pmu: Fix warnings in pmu.h shijie001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®