mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
93bead4369
commit
984e2a5975
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue