mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
kvm: x86: memset whole irq_eoi
gcc 7 warns: arch/x86/kvm/ioapic.c: In function 'kvm_ioapic_reset': arch/x86/kvm/ioapic.c:597:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] And it is right. Memset whole array using sizeof operator. Signed-off-by: Jiri Slaby <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Radim Krčmář <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Reviewed-by: Paolo Bonzini <[email protected]> [Added x86 subject tag] Signed-off-by: Radim Krčmář <[email protected]>
This commit is contained in:
parent
758f588d6f
commit
8678654e3c
1 changed files with 1 additions and 1 deletions
|
|
@ -594,7 +594,7 @@ static void kvm_ioapic_reset(struct kvm_ioapic *ioapic)
|
|||
ioapic->irr = 0;
|
||||
ioapic->irr_delivered = 0;
|
||||
ioapic->id = 0;
|
||||
memset(ioapic->irq_eoi, 0x00, IOAPIC_NUM_PINS);
|
||||
memset(ioapic->irq_eoi, 0x00, sizeof(ioapic->irq_eoi));
|
||||
rtc_irq_eoi_tracking_reset(ioapic);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue