[PATCH] KVM: Using __weak instead of __attribute__((weak)).

From: Mukesh Kumar Chaurasiya
Date: Sun Nov 20 2022 - 10:01:17 EST


Adhere to linux coding style.

Reported by checkpatch:

WARNING: Prefer __weak over __attribute__((weak))

Signed-off-by: Mukesh Kumar Chaurasiya <mchauras.linux@xxxxxxxxx>
---
virt/kvm/irqchip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt/kvm/irqchip.c b/virt/kvm/irqchip.c
index 58e4f88b2b9f..cf2e9a3fec04 100644
--- a/virt/kvm/irqchip.c
+++ b/virt/kvm/irqchip.c
@@ -157,7 +157,7 @@ static int setup_routing_entry(struct kvm *kvm,
return 0;
}

-void __attribute__((weak)) kvm_arch_irq_routing_update(struct kvm *kvm)
+void __weak kvm_arch_irq_routing_update(struct kvm *kvm)
{
}

--
2.25.1