--- a/mm/z3fold.c~z3fold-remove-unused-attribute-for-release_z3fold_page +++ a/mm/z3fold.c @@ -541,8 +541,7 @@ static void __release_z3fold_page(struct spin_unlock(&pool->stale_lock); } -static void __attribute__((__unused__)) - release_z3fold_page(struct kref *ref) +static void release_z3fold_page(struct kref *ref) { struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, refcount);