Skip to contentSkip to conversation

mm-slub-add-missing-annotation-for-get_map.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 8, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/slub: add missing annotation for get_map()
has been removed from the -mm tree. Its filename was
mm-slub-add-missing-annotation-for-get_map.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jules Irenge <[email protected]>
Subject: mm/slub: add missing annotation for get_map()

Sparse reports a warning at get_map()()

warning: context imbalance in get_map() - wrong count at exit

The root cause is the missing annotation at get_map() Add the missing __acquires(&object_map_lock) annotation

---

 mm/slub.c |    1 +
 1 file changed, 1 insertion(+)
mm/slub.c renamed from mm/slub.c~mm-slub-add-missing-annotation-for-get_map +1 -0
@@ -449,6 +449,7 @@ static DEFINE_SPINLOCK(object_map_lock);
  * not vanish from under us.
  */
 static unsigned long *get_map(struct kmem_cache *s, struct page *page)
+	__acquires(&object_map_lock)
 {
 	void *p;
 	void *addr = page_address(page);

_

Patches currently in -mm which might be from [email protected] are