Re: [PATCH] KVM: x86: Fix errors & warnings in irq_comm.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/7/23 08:21, shijie001@xxxxxxxxxx wrote:

ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Jie Shi <shijie001@xxxxxxxxxx>
---
  arch/x86/kvm/irq_comm.c | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)


@@ -365,7 +367,7 @@ EXPORT_SYMBOL_GPL(kvm_intr_is_single_vcpu);

  #define PIC_ROUTING_ENTRY(irq) \
      { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP,    \
-      .u.irqchip = { .irqchip = SELECT_PIC(irq), .pin = (irq) % 8 } }

The value is already enclosed in parentheses... False positive?

+      .u.irqchip = { .irqchip = SELECT_PIC(irq), .pin = ((irq) % 8) } }
  #define ROUTING_ENTRY2(irq) \
      IOAPIC_ROUTING_ENTRY(irq), PIC_ROUTING_ENTRY(irq)




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux