aboutsummaryrefslogtreecommitdiff
path: root/linux-headers
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-06-22 13:04:16 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-08-31 12:29:07 +0200
commit206a0fc75d5f54886c1b3f3a65782a75e36b6b97 (patch)
tree014c639d7e87a7d0924b6d5369c3f0169e86f17e /linux-headers
parent074d5afe7c710c935f5558f23eb8e2b28778e491 (diff)
downloadqemu-206a0fc75d5f54886c1b3f3a65782a75e36b6b97.zip
qemu-206a0fc75d5f54886c1b3f3a65782a75e36b6b97.tar.gz
qemu-206a0fc75d5f54886c1b3f3a65782a75e36b6b97.tar.bz2
kvm: use DIV_ROUND_UP
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 <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'linux-headers')
-rw-r--r--linux-headers/asm-x86/kvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
index c2824d0..1930b95 100644
--- a/linux-headers/asm-x86/kvm.h
+++ b/linux-headers/asm-x86/kvm.h
@@ -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 */