diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2011-08-12 23:58:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 23:12:24 +0200 |
commit | 86ec67fd0a28c7f2b765e33aaf5b002d28c5f1fa (patch) | |
tree | a77653b6c617d73a26efabd98fb0551201a3a94f /drivers/base/devres.c | |
parent | pti: add missing CONFIG_PCI dependency (diff) | |
download | linux-86ec67fd0a28c7f2b765e33aaf5b002d28c5f1fa.tar.xz linux-86ec67fd0a28c7f2b765e33aaf5b002d28c5f1fa.zip |
base/devres.c: quiet sparse noise about context imbalance
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>
Diffstat (limited to 'drivers/base/devres.c')
-rw-r--r-- | drivers/base/devres.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/devres.c b/drivers/base/devres.c index cf7a0c788052..65cd74832450 100644 --- a/drivers/base/devres.c +++ b/drivers/base/devres.c @@ -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; |