The patch titled Subject: lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix has been added to the -mm tree. Its filename is lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix use offset_in_page(), per Andy Cc: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> Cc: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Cc: Sudeep Holla <sudeep.holla@xxxxxxx> Cc: Yury Norov <ynorov@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/bitmap.c~lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix +++ a/lib/bitmap.c @@ -469,7 +469,7 @@ EXPORT_SYMBOL(bitmap_parse_user); int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, int nmaskbits) { - ptrdiff_t len = PAGE_SIZE - ((unsigned long)buf & (PAGE_SIZE-1)); + ptrdiff_t len = PAGE_SIZE - offset_in_page(buf); int n = 0; if (len > 1) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-utilc-improve-kvfree-kerneldoc.patch fix-crash-on-ocfs2_duplicate_clusters_by_page-v5-checkpatch-fixes.patch arm-arch-arm-include-asm-pageh-needs-personalityh.patch mm.patch mmpage_alloc-pf_wq_worker-threads-must-sleep-at-should_reclaim_retry-fix.patch mm-page_alloc-reduce-unnecessary-binary-search-in-memblock_next_valid_pfn-fix.patch mm-page_alloc-reduce-unnecessary-binary-search-in-memblock_next_valid_pfn-fix-fix.patch mm-memblock-introduce-memblock_search_pfn_regions-fix.patch mm-calculate-deferred-pages-after-skipping-mirrored-memory-fix.patch list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch lib-bitmapc-fix-remaining-space-computation-in-bitmap_print_to_pagebuf-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch