File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1879,7 +1879,7 @@ static u64 kvm_hv_flush_tlb(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hc)
1879
1879
all_cpus = flush_ex .hv_vp_set .format !=
1880
1880
HV_GENERIC_SET_SPARSE_4K ;
1881
1881
1882
- if (hc -> var_cnt != bitmap_weight (( unsigned long * ) & valid_bank_mask , 64 ))
1882
+ if (hc -> var_cnt != hweight64 ( valid_bank_mask ))
1883
1883
return HV_STATUS_INVALID_HYPERCALL_INPUT ;
1884
1884
1885
1885
if (all_cpus )
@@ -1980,7 +1980,7 @@ static u64 kvm_hv_send_ipi(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hc)
1980
1980
valid_bank_mask = send_ipi_ex .vp_set .valid_bank_mask ;
1981
1981
all_cpus = send_ipi_ex .vp_set .format == HV_GENERIC_SET_ALL ;
1982
1982
1983
- if (hc -> var_cnt != bitmap_weight (( unsigned long * ) & valid_bank_mask , 64 ))
1983
+ if (hc -> var_cnt != hweight64 ( valid_bank_mask ))
1984
1984
return HV_STATUS_INVALID_HYPERCALL_INPUT ;
1985
1985
1986
1986
if (all_cpus )
You can’t perform that action at this time.
0 commit comments