From: Jeff Layton Date: Mon, 3 Feb 2014 17:13:07 +0000 (-0500) Subject: locks: add __acquires and __releases annotations to locks_start and locks_stop X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b03dfdec0381857db2c01c877b7064f3f5d97d7e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git locks: add __acquires and __releases annotations to locks_start and locks_stop ...to make sparse happy. Acked-by: J. Bruce Fields Signed-off-by: Jeff Layton --- diff --git a/fs/locks.c b/fs/locks.c index 049a14402ee4..6084f5a32e9c 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -2430,6 +2430,7 @@ static int locks_show(struct seq_file *f, void *v) } static void *locks_start(struct seq_file *f, loff_t *pos) + __acquires(&blocked_lock_lock) { struct locks_iterator *iter = f->private; @@ -2448,6 +2449,7 @@ static void *locks_next(struct seq_file *f, void *v, loff_t *pos) } static void locks_stop(struct seq_file *f, void *v) + __releases(&blocked_lock_lock) { spin_unlock(&blocked_lock_lock); lg_global_unlock(&file_lock_lglock);