Sparse reports a warning at zs_unmap_object() context imbalance in zs_unmap_object() - unexpected unlock The root cause is the missing annotation at zs_unmap_object() Add the missing __releases(zspage) Signed-off-by: Jules Irenge <jbi.octave@xxxxxxxxx> --- mm/zsmalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 9d3f9b3d22aa..10a96651cb97 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1349,6 +1349,7 @@ void *zs_map_object(struct zs_pool *pool, unsigned long handle, EXPORT_SYMBOL_GPL(zs_map_object); void zs_unmap_object(struct zs_pool *pool, unsigned long handle) + __releases(zspage) { struct zspage *zspage; struct page *page; -- 2.24.1