--- a/mm/zsmalloc.c~mm-zsmalloc-add-missing-annotation-for-pin_tag +++ a/mm/zsmalloc.c @@ -891,7 +891,7 @@ static inline int trypin_tag(unsigned lo return bit_spin_trylock(HANDLE_PIN_BIT, (unsigned long *)handle); } -static void pin_tag(unsigned long handle) +static void pin_tag(unsigned long handle) __acquires(bitlock) { bit_spin_lock(HANDLE_PIN_BIT, (unsigned long *)handle); }