From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE533282F06 for ; Tue, 31 Mar 2026 00:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774917772; cv=none; b=GHDEIxYEqiPvMZms5gPY8//vgyzmEcurJHcWk9vFAd/ELn2KkjiRqY/lMhMyoFGkJyRWtRlGqiBQerHrtmAiohBrC/myX5bV9hYQkyVrvg7dbp+Ta2hYIQLhNo49NfJW++ynyVkCSFtxzKshxlb9R7TMtrBJ2qpFH9hdG0J8ejg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774917772; c=relaxed/simple; bh=tPHgMnSBd4862vvv9M7tcwSlJlqLf0YiEeghnL5afbw=; h=Date:To:From:Subject:Message-Id; b=gpO8F9PFAFNw/S57oaOxjU35kIuiUANKeUfwJ75yWOTG4xOEU1KWz5P/KQeB5TEzSnCJkAFFl/4kTFR+por4q3CTow640FPkOMrmZbmYPkBenYOi4FjKg+f8JXKX0NN0rnQ0ZVWCaKpxxUMPiXoYLOy37VyVcCIP878xMx8mjdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=kT5pNLZA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="kT5pNLZA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0B27C4CEF7; Tue, 31 Mar 2026 00:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1774917772; bh=tPHgMnSBd4862vvv9M7tcwSlJlqLf0YiEeghnL5afbw=; h=Date:To:From:Subject:From; b=kT5pNLZAzxMkSjoqW5VIW5Iuxt7E7j5D7ccmgk+y2IsuGRUnVYuFFcugHbwpFCHd7 C5MP0+ajbcuxYrXa0F5o7HVTGf7/IZ4G8qTGPRzIfMUZUbgtVuEPp0JtK4PjlF8prt A2gzlKpyqRdBnDQZNG/uXn5TZqJ1gJWZQe+1GvB4= Date: Mon, 30 Mar 2026 17:42:52 -0700 To: mm-commits@vger.kernel.org,xu.xin16@zte.com.cn,will@kernel.org,viro@zeniv.linux.org.uk,vgupta@kernel.org,vbabka@kernel.org,tsbogend@alpha.franken.de,svens@linux.ibm.com,surenb@google.com,stephen.smalley.work@gmail.com,rppt@kernel.org,richard@nod.at,pfalcato@suse.de,paul@paul-moore.com,palmer@dabbelt.com,omosnace@redhat.com,npiggin@gmail.com,mpe@ellerman.id.au,mingo@redhat.com,mhocko@suse.com,maddy@linux.ibm.com,linux@armlinux.org.uk,liam.howlett@oracle.com,kernel@xen0n.name,kees@kernel.org,johannes@sipsolutions.net,jannh@google.com,jack@suse.cz,hpa@zytor.com,hca@linux.ibm.com,gor@linux.ibm.com,dinguyen@kernel.org,david@kernel.org,chenhuacai@kernel.org,chengming.zhou@linux.dev,catalin.marinas@arm.com,brauner@kernel.org,bp@alien8.de,borntraeger@linux.ibm.com,aou@eecs.berkeley.edu,anton.ivanov@cambridgegreys.com,alex@ghiti.fr,agordeev@linux.ibm.com,ljs@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] tools-bitmap-add-missing-bitmap_copy-implementation.patch removed from -mm tree Message-Id: <20260331004252.A0B27C4CEF7@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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)" 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. Link: https://lkml.kernel.org/r/4dcb2fb959137e9fe58a23e21cebcea97de41a1f.1774034900.git.ljs@kernel.org Signed-off-by: Lorenzo Stoakes (Oracle) Cc: Albert Ou Cc: Alexander Gordeev Cc: Alexandre Ghiti Cc: Al Viro Cc: Anton Ivanov Cc: "Borislav Petkov (AMD)" Cc: Catalin Marinas Cc: Chengming Zhou Cc: Christian Borntraeger Cc: Christian Brauner Cc: David Hildenbrand Cc: Dinh Nguyen Cc: Heiko Carstens Cc: "H. Peter Anvin" Cc: Huacai Chen Cc: Ingo Molnar Cc: Jan Kara Cc: Jann Horn Cc: Johannes Berg Cc: Kees Cook Cc: Liam Howlett Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Michal Hocko Cc: Mike Rapoport Cc: Nicholas Piggin Cc: Ondrej Mosnacek Cc: Palmer Dabbelt Cc: Paul Moore Cc: Pedro Falcato Cc: Richard Weinberger Cc: Russell King Cc: Stephen Smalley Cc: Suren Baghdasaryan Cc: Sven Schnelle Cc: Thomas Bogendoerfer Cc: Vasily Gorbik Cc: Vineet Gupta Cc: Vlastimil Babka (SUSE) Cc: WANG Xuerui Cc: Will Deacon Cc: xu xin Signed-off-by: Andrew Morton --- tools/include/linux/bitmap.h | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/tools/include/linux/bitmap.h~tools-bitmap-add-missing-bitmap_copy-implementation +++ a/tools/include/linux/bitmap.h @@ -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 ljs@kernel.org are maintainers-update-mglru-entry-to-reflect-current-status.patch selftests-mm-add-merge-test-for-partial-msealed-range.patch