]> Git Repo - qemu.git/commitdiff
kvm: use DIV_ROUND_UP
authorMarc-André Lureau <[email protected]>
Thu, 22 Jun 2017 11:04:16 +0000 (13:04 +0200)
committerMarc-André Lureau <[email protected]>
Thu, 31 Aug 2017 10:29:07 +0000 (12:29 +0200)
I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
linux-headers/asm-x86/kvm.h

index c2824d02ba3762553b62a07709058102050e34da..1930b95bcb4ff2f2ac7cdb2804beec53467584e1 100644 (file)
@@ -153,7 +153,7 @@ struct kvm_sregs {
        __u64 cr0, cr2, cr3, cr4, cr8;
        __u64 efer;
        __u64 apic_base;
-       __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64];
+       __u64 interrupt_bitmap[DIV_ROUND_UP(KVM_NR_INTERRUPTS, 64)];
 };
 
 /* for KVM_GET_FPU and KVM_SET_FPU */
This page took 0.030631 seconds and 4 git commands to generate.