]> www.infradead.org Git - linux.git/commit
KVM: arm64: vgic: fix unexpected unlock sparse warnings
authorSebastian Ott <sebott@redhat.com>
Tue, 23 Jul 2024 10:12:04 +0000 (12:12 +0200)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 2 Aug 2024 18:58:03 +0000 (18:58 +0000)
commit19d837bc881b2f9f72f9eb506b46c2e2d983896d
tree4089f6996f4347b2458442c023f4c968e01854ce
parent0aa34b37a78d063da58838b84b20a68a94d919fd
KVM: arm64: vgic: fix unexpected unlock sparse warnings

Get rid of unexpected unlock sparse warnings in vgic code
by adding an annotation to vgic_queue_irq_unlock().

arch/arm64/kvm/vgic/vgic.c:334:17: warning: context imbalance in 'vgic_queue_irq_unlock' - unexpected unlock
arch/arm64/kvm/vgic/vgic.c:419:5: warning: context imbalance in 'kvm_vgic_inject_irq' - different lock contexts for basic block

Signed-off-by: Sebastian Ott <sebott@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240723101204.7356-4-sebott@redhat.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/vgic/vgic.c
arch/arm64/kvm/vgic/vgic.h