mm-add-more-build_bug_ons-to-gfp_migratetype.patch removed from -mm tree
The quilt patch titled
Subject: mm: add more BUILD_BUG_ONs to gfp_migratetype()
has been removed from the -mm tree. Its filename was
mm-add-more-build_bug_ons-to-gfp_migratetype.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Peter Collingbourne <[email protected]>
Subject: mm: add more BUILD_BUG_ONs to gfp_migratetype()
Date: Tue, 26 Jul 2022 16:02:41 -0700
gfp_migratetype() also expects GFP_RECLAIMABLE and GFP_MOVABLE|GFP_RECLAIMABLE to be shiftable into MIGRATE_* enum values, so add some more BUILD_BUG_ONs to reflect this assumption.
---
include/linux/gfp.h | 3 +++ 1 file changed, 3 insertions(+)
include/linux/gfp.h renamed from include/linux/gfp.h~mm-add-more-build_bug_ons-to-gfp_migratetype +3 -0
@@ -18,6 +18,9 @@ static inline int gfp_migratetype(constVM_WARN_ON ((gfp_flags &GFP_MOVABLE_MASK ) ==GFP_MOVABLE_MASK );BUILD_BUG_ON ((1UL <<GFP_MOVABLE_SHIFT ) != ___GFP_MOVABLE);BUILD_BUG_ON ((___GFP_MOVABLE >>GFP_MOVABLE_SHIFT ) !=MIGRATE_MOVABLE ); +BUILD_BUG_ON ((___GFP_RECLAIMABLE >>GFP_MOVABLE_SHIFT ) !=MIGRATE_RECLAIMABLE ); +BUILD_BUG_ON (((___GFP_MOVABLE | ___GFP_RECLAIMABLE) >> +GFP_MOVABLE_SHIFT ) !=MIGRATE_HIGHATOMIC );if (unlikely (page_group_by_mobility_disabled))return MIGRATE_UNMOVABLE ;
_
Patches currently in -mm which might be from [email protected] are