base/devres.c: quiet sparse noise about context imbalance
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 12 Aug 2011 21:58:31 +0000 (14:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Aug 2011 21:12:24 +0000 (14:12 -0700)
devres_release_all and devres_release_group both aquire the lock
&dev->devres_lock but the release of that lock is done in release_nodes.
This results in sparse noise about context imbalance.

Add a lock annotation to release_nodes to quiet this noise.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/devres.c

index cf7a0c78805278e64f195921b3991c577691da66..65cd74832450507b9f7b1949b6ca85c648109ff1 100644 (file)
@@ -397,6 +397,7 @@ static int remove_nodes(struct device *dev,
 
 static int release_nodes(struct device *dev, struct list_head *first,
                         struct list_head *end, unsigned long flags)
+       __releases(&dev->devres_lock)
 {
        LIST_HEAD(todo);
        int cnt;