summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8259.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-21 02:18:13 +0100
committerAvi Kivity <avi@redhat.com>2009-03-24 11:03:13 +0200
commitd7364a29b305862cbc92b3f8b6ad9968270d068c (patch)
tree8fb7bb30cf58972b7c41390d6d002c5bda1ac9b4 /arch/x86/kvm/i8259.c
parent41d6af119206e98764b4ae6d264d63acefcf851e (diff)
downloadop-kernel-dev-d7364a29b305862cbc92b3f8b6ad9968270d068c.zip
op-kernel-dev-d7364a29b305862cbc92b3f8b6ad9968270d068c.tar.gz
KVM: fix sparse warnings: context imbalance
Impact: Attribute function with __acquires(...) resp. __releases(...). Fix this sparse warnings: arch/x86/kvm/i8259.c:34:13: warning: context imbalance in 'pic_lock' - wrong count at exit arch/x86/kvm/i8259.c:39:13: warning: context imbalance in 'pic_unlock' - unexpected unlock Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8259.c')
-rw-r--r--arch/x86/kvm/i8259.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c
index b4e662e..1ccb50c 100644
--- a/arch/x86/kvm/i8259.c
+++ b/arch/x86/kvm/i8259.c
@@ -32,11 +32,13 @@
#include <linux/kvm_host.h>
static void pic_lock(struct kvm_pic *s)
+ __acquires(&s->lock)
{
spin_lock(&s->lock);
}
static void pic_unlock(struct kvm_pic *s)
+ __releases(&s->lock)
{
struct kvm *kvm = s->kvm;
unsigned acks = s->pending_acks;
OpenPOWER on IntegriCloud