mirror of
https://github.com/torvalds/linux.git
synced 2026-09-27 11:02:03 +02:00
RISC-V: KVM: Use unsigned int for vma_pageshift
vma_pageshift in kvm_riscv_mmu_map() was declared short. Use unsigned int, the conventional kernel type for bit widths and shift counts, in preparation for sharing a common struct kvm_page_fault across architectures. No functional change. Assisted-by: YuanSheng: deepseek-v4-pro Co-developed-by: Quan Zhou <zhouquan@iscas.ac.cn> Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn> Signed-off-by: Bingyu Xian <shanbeeyoo@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260729120733.829457-3-shanbeeyoo@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
370907638c
commit
ed2300fabb
|
|
@ -541,7 +541,7 @@ int kvm_riscv_mmu_map(struct kvm_vcpu *vcpu, struct kvm_memory_slot *memslot,
|
|||
kvm_pfn_t hfn;
|
||||
bool is_hugetlb;
|
||||
bool writable;
|
||||
short vma_pageshift;
|
||||
unsigned int vma_pageshift;
|
||||
gfn_t gfn = gpa >> PAGE_SHIFT;
|
||||
struct vm_area_struct *vma;
|
||||
struct kvm *kvm = vcpu->kvm;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user