Skip to content

Commit 86ec67f

Browse files
H Hartley Sweetengregkh
authored andcommitted
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>
1 parent 8ea95e0 commit 86ec67f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/base/devres.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ static int remove_nodes(struct device *dev,
397397

398398
static int release_nodes(struct device *dev, struct list_head *first,
399399
struct list_head *end, unsigned long flags)
400+
__releases(&dev->devres_lock)
400401
{
401402
LIST_HEAD(todo);
402403
int cnt;

0 commit comments

Comments
 (0)