Skip to contentSkip to conversation

KVM: Using __weak instead of __attribute__((weak)).

PATCH New Mukesh Kumar Chaurasiya 1 participant 1 message Nov 20, 2022 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: Using __weak instead of __attribute__((weak)).

Adhere to linux coding style.

Reported by checkpatch:

WARNING: Prefer __weak over __attribute__((weak))

---
 virt/kvm/irqchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
virt/kvm/irqchip.c +1 -1
index 58e4f88b2b9f..cf2e9a3fec04 100644
@@ -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)
 {
 }
 
Signature · 1 line
2.25.1