]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: add more BUILD_BUG_ONs to gfp_migratetype()
authorPeter Collingbourne <pcc@google.com>
Tue, 26 Jul 2022 23:02:41 +0000 (16:02 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 17 Aug 2022 20:58:35 +0000 (13:58 -0700)
commit32d55b75966b2ca8895ff59dc60db1ceb8566b8c
treedabc3df879b84a08c0d28565ccf4ea2ed31244c3
parent61c63c2076d940c00e0b2716e872ceeeeb9105d3
mm: add more BUILD_BUG_ONs to gfp_migratetype()

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.

Link: https://linux-review.googlesource.com/id/Iae64e2182f75c3aca776a486b71a72571d66d83e
Link: https://lkml.kernel.org/r/20220726230241.3770532-1-pcc@google.com
Signed-off-by: Peter Collingbourne <pcc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/gfp.h