Skip to contentSkip to conversation

buildid-use-kmap_local_page.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Mar 12, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: buildid: use kmap_local_page()
has been removed from the -mm tree. Its filename was
buildid-use-kmap_local_page.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Peng Hao <[email protected]>
Subject: buildid: use kmap_local_page()
Date: Wed, 6 Mar 2024 11:48:04 +0800

Use kmap_local_page() instead of kmap_atomic() which has been deprecated.

---

 lib/buildid.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/buildid.c renamed from lib/buildid.c~buildid-use-kmap_local_page +2 -2
@@ -140,7 +140,7 @@ int build_id_parse(struct vm_area_struct
 		return -EFAULT;	/* page not mapped */
 
 	ret = -EINVAL;
-	page_addr = kmap_atomic(page);
+	page_addr = kmap_local_page(page);
 	ehdr = (Elf32_Ehdr *)page_addr;
 
 	/* compare magic x7f "ELF" */
@@ -156,7 +156,7 @@ int build_id_parse(struct vm_area_struct
 	else if (ehdr->e_ident[EI_CLASS] == ELFCLASS64)
 		ret = get_build_id_64(page_addr, build_id, size);
 out:
-	kunmap_atomic(page_addr);
+	kunmap_local(page_addr);
 	put_page(page);
 	return ret;
 }

_

Patches currently in -mm which might be from [email protected] are