tools-bitmap-add-missing-bitmap_copy-implementation.patch removed from -mm tree
The quilt patch titled
Subject: tools: bitmap: add missing bitmap_copy() implementation
has been removed from the -mm tree. Its filename was
tools-bitmap-add-missing-bitmap_copy-implementation.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: "Lorenzo Stoakes (Oracle)" <[email protected]>
Subject: tools: bitmap: add missing bitmap_copy() implementation
Date: Fri, 20 Mar 2026 19:38:39 +0000
I need this for changes I am making to keep the VMA tests running correctly.
---
tools/include/linux/bitmap.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
tools/include/linux/bitmap.h renamed from tools/include/linux/bitmap.h~tools-bitmap-add-missing-bitmap_copy-implementation +11 -0
@@ -55,6 +55,17 @@ static inline void bitmap_fill(unsigned dst[nlongs -1 ] =BITMAP_LAST_WORD_MASK (nbits); } +static __always_inline +void bitmap_copy(unsigned long *dst, const unsigned long *src, unsigned int nbits) +{ +unsigned int len =bitmap_size (nbits); + +if (small_const_nbits (nbits)) + *dst = *src; +else +memcpy (dst, src, len); +} +static inline bool bitmap_empty (const unsigned long *src,unsigned int nbits) {if (small_const_nbits (nbits))
_
Patches currently in -mm which might be from [email protected] are
maintainers-update-mglru-entry-to-reflect-current-status.patch selftests-mm-add-merge-test-for-partial-msealed-range.patch