public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: Using __weak instead of __attribute__((weak)).
@ 2022-11-20 15:01 Mukesh Kumar Chaurasiya
  0 siblings, 0 replies; only message in thread
From: Mukesh Kumar Chaurasiya @ 2022-11-20 15:01 UTC (permalink / raw)
  To: Paolo Bonzini, kvm, linux-kernel; +Cc: Mukesh Kumar Chaurasiya

Adhere to linux coding style.

Reported by checkpatch:

WARNING: Prefer __weak over __attribute__((weak))

Signed-off-by: Mukesh Kumar Chaurasiya <mchauras.linux@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-20 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-20 15:01 [PATCH] KVM: Using __weak instead of __attribute__((weak)) Mukesh Kumar Chaurasiya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox