浏览代码

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>
Heiko Carstens 12 年之前
父节点
当前提交
984e2a5975
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      arch/s390/mm/pgtable.c

+ 3 - 1
arch/s390/mm/pgtable.c

@@ -245,7 +245,9 @@ EXPORT_SYMBOL_GPL(gmap_disable);
  * gmap_alloc_table is assumed to be called with mmap_sem held
  * gmap_alloc_table is assumed to be called with mmap_sem held
  */
  */
 static int gmap_alloc_table(struct gmap *gmap,
 static int gmap_alloc_table(struct gmap *gmap,
-			       unsigned long *table, unsigned long init)
+			    unsigned long *table, unsigned long init)
+	__releases(&gmap->mm->page_table_lock)
+	__acquires(&gmap->mm->page_table_lock)
 {
 {
 	struct page *page;
 	struct page *page;
 	unsigned long *new;
 	unsigned long *new;