--- a/mm/compaction.c~mm-compaction-add-missing-annotation-for-compact_lock_irqsave +++ a/mm/compaction.c @@ -481,6 +481,7 @@ static bool test_and_set_skip(struct com */ static bool compact_lock_irqsave(spinlock_t *lock, unsigned long *flags, struct compact_control *cc) + __acquires(lock) { /* Track if the lock is contended in async mode */ if (cc->mode == MIGRATE_ASYNC && !cc->contended) {