[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 24/29] kvm: use DIV_ROUND_UP
From: |
Marc-André Lureau |
Subject: |
[Qemu-trivial] [PULL 24/29] kvm: use DIV_ROUND_UP |
Date: |
Thu, 31 Aug 2017 12:34:27 +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 <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
linux-headers/asm-x86/kvm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
index c2824d02ba..1930b95bcb 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 */
--
2.14.1.146.gd35faa819
- [Qemu-trivial] [PULL 15/29] monitor: use DIV_ROUND_UP, (continued)
- [Qemu-trivial] [PULL 15/29] monitor: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 16/29] console: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 17/29] virtio-serial: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 18/29] piix: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 19/29] q35: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 20/29] usb-hub: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 21/29] msix: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 22/29] ppc: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 23/29] i386/dump: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 25/29] decnumber: use DIV_ROUND_UP, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 24/29] kvm: use DIV_ROUND_UP,
Marc-André Lureau <=
- [Qemu-trivial] [PULL 26/29] i386: introduce ELF_NOTE_SIZE macro, Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 27/29] i386: replace g_malloc()+memcpy() with g_memdup(), Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 29/29] eepro100: replace g_malloc()+memcpy() with g_memdup(), Marc-André Lureau, 2017/08/31
- [Qemu-trivial] [PULL 28/29] test-iov: replace g_malloc()+memcpy() with g_memdup(), Marc-André Lureau, 2017/08/31
- Re: [Qemu-trivial] [Qemu-devel] [PULL 00/29] Code cleanup patches, no-reply, 2017/08/31
- Re: [Qemu-trivial] [PULL 00/29] Code cleanup patches, Peter Maydell, 2017/08/31