diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-09-06 12:48:58 -0400 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-09-07 05:57:56 -0400 |
commit | 984e2a5975e538a6475f7453523896319a1cb597 (patch) | |
tree | 6949ca32323f5d0f94dc9740002d77fb06cb6b1c /arch/s390/mm | |
parent | 93bead4369c0a9e41327f2f7eb19d3c767f271c6 (diff) |
s390/mm: add __releases()/__acquires() annotations to gmap_alloc_table()
Let sparse not incorrectly complain about unbalanced locking.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r-- | arch/s390/mm/pgtable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index 6d16132d0850..1224db4a4055 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c | |||
@@ -245,7 +245,9 @@ EXPORT_SYMBOL_GPL(gmap_disable); | |||
245 | * gmap_alloc_table is assumed to be called with mmap_sem held | 245 | * gmap_alloc_table is assumed to be called with mmap_sem held |
246 | */ | 246 | */ |
247 | static int gmap_alloc_table(struct gmap *gmap, | 247 | static int gmap_alloc_table(struct gmap *gmap, |
248 | unsigned long *table, unsigned long init) | 248 | unsigned long *table, unsigned long init) |
249 | __releases(&gmap->mm->page_table_lock) | ||
250 | __acquires(&gmap->mm->page_table_lock) | ||
249 | { | 251 | { |
250 | struct page *page; | 252 | struct page *page; |
251 | unsigned long *new; | 253 | unsigned long *new; |