projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93bead4
)
s390/mm: add __releases()/__acquires() annotations to gmap_alloc_table()
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Fri, 6 Sep 2013 16:48:58 +0000
(18:48 +0200)
committer
Heiko Carstens
<heiko.carstens@de.ibm.com>
Sat, 7 Sep 2013 09:57:56 +0000
(11:57 +0200)
Let sparse not incorrectly complain about unbalanced locking.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/mm/pgtable.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/mm/pgtable.c
b/arch/s390/mm/pgtable.c
index 6d16132d08501bb40fd4598d4dae951601bd37b5..1224db4a4055ca82174146182c418318cd7e6ec0 100644
(file)
--- a/
arch/s390/mm/pgtable.c
+++ b/
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
*/
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;
unsigned long *new;