The patch titled Subject: fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer-v2 has been removed from the -mm tree. Its filename was fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer-v2.patch This patch was dropped because it was folded into fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer.patch ------------------------------------------------------ From: Petr Tesarik <ptesarik@xxxxxxxx> Subject: fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer-v2 Link: http://lkml.kernel.org/r/20180125100516.589ea6af@xxxxxxxxxxxxxxx Signed-off-by: Petr Tesarik <ptesarik@xxxxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Kemi Wang <kemi.wang@xxxxxxxxx> Cc: YASUAKI ISHIMATSU <yasu.isimatu@xxxxxxxxx> Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/sparse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN mm/sparse.c~fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer-v2 mm/sparse.c --- a/mm/sparse.c~fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer-v2 +++ a/mm/sparse.c @@ -264,7 +264,11 @@ unsigned long __init node_memmap_size_by */ static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) { - return (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); + unsigned long coded_mem_map = + (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); + BUILD_BUG_ON(SECTION_MAP_LAST_BIT > (1UL<<PFN_SECTION_SHIFT)); + BUG_ON(coded_mem_map & ~SECTION_MAP_MASK); + return coded_mem_map; } /* _ Patches currently in -mm which might be from ptesarik@xxxxxxxx are fix-explanation-of-lower-bits-in-the-sparsemem-mem_map-pointer.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html